-
·
Filter: mbp_business_selector_locations
The mbp_business_selector_locations filter can be used to filter the locations that appear in the business selector. It has three arguments: $locations, $account_name and $account_key. $locations – Contains the Google API response with the locations $account_name – Contains the Google location group ID $account_key – Contains the Google account ID Samples Only displaying specific locations in…
-
·
Filter: mbp_placeholder_variables
The mbp_placeholder_variables filter can be used to alter or add variables to be replaced with their corresponding value in a GMB post. It has two arguments, $variables and $parent_post_id. Samples Add a variable This will replace %custom_variable% with Custom value in the text of your post function add_custom_variable($variables, $parent_post_id){ $variables[‘%custom_variable%’] = ‘Custom value’; return $variables;…
-
·
Filter: mbp_autopost_post_args
The mbp_autopost_post_args filter allows you to alter the post arguments sent to Google My Business when the plugin creates an automatic post. It has 2 parameters, $args containing the post data and $location containing the GMB location ID. function do_something_with_the_post_args($args, $location){ //Alter the post arguments return $args; } add_filter(‘mbp_autopost_post_args’, ‘do_something_with_the_post_args’, 10, 2); Out of the…