In this article
apply_filters( 'jobrelay_wpcon_google_indexing_url', $url string, $post_id int )
Allows filtering of the job URL sent to Google. Useful when testing on a local site, to swap the local address for one verified in Search Console.
Parameters
$url(string) The URL of the job, from get_permalink().$post_id(int) The post ID of the job, or 0 for the home page URL used by Test connection.
Example
// send local jobs to google as staging site urls.
add_filter( 'jobrelay_wpcon_google_indexing_url', function( $url ) {
return str_replace( 'https://yoursite.test', 'https://staging.yoursite.com', $url );
} );