protected function get_message_id_for_post(WP_Post $post) { $left = 'falcon/' . $post->post_type . '/' . $post->ID; $right = parse_url(home_url(), PHP_URL_HOST); $id = sprintf('<%s@%s>', $left, $right); /** * Filter message IDs for posts * * @param string $id Message ID (conforming to RFC5322 Message-ID semantics) * @param WP_Post $post Post object */ return apply_filters('falcon.connector.wordpress.post_message_id', $id, $post); }