This filter can be used to change the business info phone icon.

Arguments (1)

  1. $icon (string) – A svg icon.

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below we’ll change the phone icon.

add_filter( 'aioseo_local_business_info_phone_icon', 'aioseo_change_local_business_info_phone_icon');

function aioseo_change_local_business_info_phone_icon( $icon ) {
	return '<img src="'.get_template_directory_uri().'/assets/images/phone-icon.png"/>';