jobrelay_wpcon_google_indexing_notified hook

In this article

do_action( 'jobrelay_wpcon_google_indexing_notified', $url string, $type string, $response array, $post_id int )

Fires after Google has accepted a notification about a job.

Parameters

  • $url (string) The URL of the job.
  • $type (string) Either URL_UPDATED or URL_DELETED.
  • $response (array) Google’s response, decoded from JSON.
  • $post_id (int) The post ID of the job. The job may no longer exist if it was deleted.

Example

// log each job google is told about.
add_action( 'jobrelay_wpcon_google_indexing_notified', function( $url, $type ) {
	error_log( 'Google told ' . $type . ': ' . $url );
}, 10, 2 );

Can’t find what you need?

Our integrations team set up every JobRelay site, so they know it inside out. Get in touch and we’ll help.