WPML best page selector with php

I have a multilingual website made with WPML.
I have php code to run across pages but I cannot uniquely target the page with is_page(ID) since the ID of the page changes across language domain.
I need to write the code to target the page for each language.
What is the best practice to target pages across language domain?

I would like to send a notification email (Asana) whenever something is published (posts, pages, custom post types)

The code below works perfectly When I create a new post, an email is sent out to the email included in the function. I would like to know how I can send an email when anything is published on the website, like custom post types, pages and regular posts function notifyauthor($post_id) { $post = get_post($post_id); … Read more