Home / Admin / Hide Specific Day From Opening Hours Output
Duplicate Snippet

Embed Snippet on Your Site

Hide Specific Day From Opening Hours Output

This filter can be used to hide a specific day from Opening Hours output

Replace 'Sunday' in 'showSunday' with the day to hide.

<10
Code Preview
php
<?php
add_filter( 'aioseo_local_business_output_opening_hours_instance', 'aioseo_change_local_business_output_opening_hours_instance', 10, 3 );
function aioseo_change_local_business_output_opening_hours_instance( $instance, $postId, $openingHoursData ) {
	$instance['showSunday'] = false;
	return $instance;
}

Comments

Add a Comment