Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Purpose
This filter can be used to change the business info location icon.
Arguments (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 location icon.
add_filter( 'aioseo_local_business_info_location_icon', 'aioseo_change_local_business_info_location_icon');
function aioseo_change_local_business_info_location_icon( $icon ) {
return '<img src="'.get_template_directory_uri().'/assets/images/location-icon.png"/>';
}