In this article
apply_filters( 'jobrelay_wpcon_google_indexing_mode', $mode string )
Allows filtering of the Google Indexing mode the plugin uses. By default this is the Google Indexing setting, except that it is off when Output Google for Jobs markup is not ticked, and log when the site address has changed since the setting was turned on.
Parameters
$mode(string) Either off, log or live.
Example
// never call google on a site whose address contains staging.
add_filter( 'jobrelay_wpcon_google_indexing_mode', function( $mode ) {
if ( 'live' === $mode && false !== strpos( home_url(), 'staging' ) ) {
return 'log';
}
return $mode;
} );