This filter can be used to change the opening hours 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 opening hours icon.

add_filter( 'aioseo_local_business_info_location_icon', add_filter( 'aioseo_local_business_opening_hours_icon', 'aioseo_change_local_business_opening_hours_icon');

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