The mbp_autopost_created
action is triggered when a new automatic post has been created by the plugin. It has 2 variables, $gmb_name
, containing Google’s internal post ID, and $gmb_url
containing a direct URL to the post in the search results.
Usage
function do_something_with_post($gmb_name, $gmb_url){ //Do something with the $gmb_name and $gmb_url variables here. } add_action('mbp_autopost_created', 'do_something_with_post');