Home / Admin / Change Opening Hours Closed Label
Duplicate Snippet

Embed Snippet on Your Site

Change Opening Hours Closed Label

This filter can be used to change the closed label of Opening Hours.

Replace 'Closed today.' with the desired label.

<10
Code Preview
php
<?php
add_filter( 'aioseo_local_business_output_opening_hours_data', 'aioseo_change_local_business_output_opening_hours_data', 10, 3 );
function aioseo_change_local_business_output_opening_hours_data( $openingHoursData, $instance, $postId ) {
	$openingHoursData->labels->closed = __( 'Closed today.' );
	return $openingHoursData;
}

Comments

Add a Comment