Home / Admin / Hide Business Info Phone Number from the Front End
Duplicate Snippet

Embed Snippet on Your Site

Hide Business Info Phone Number from the Front End

This filter can be used to hide business info phone number from the front end.

<10
Code Preview
php
<?php
add_filter( 'aioseo_local_business_output_business_info_instance', 'aioseo_change_local_business_output_business_info_instance', 10, 3 );
function aioseo_change_local_business_output_business_info_instance( $instance, $postId, $locationData ) {
	$instance['showPhone'] = false;
	return $instance;
}

Comments

Add a Comment