Function: aioseo_local_opening_hours()

Use the following function to display the opening hours info.

<?php if( function_exists( 'aioseo_local_opening_hours' ) ) aioseo_local_opening_hours(); ?>

The following options are supported:

  • locationId
    • Default: ”
    • If Multiple Locations is on use a location's ID.
    • If Multiple Locations is off ( and location_id is empty ) the Business Information under AIOSEO -> Local Seo -> Opening Hours will be used.
  • showTitle
    • Default: true
    • Show or hide the title.
  • showIcons
    • Default: true
    • Show or hide icons ( address, phone, fax, email ).
  • showMonday
    • Default: true
    • Show or hide the monday hours.
  • showTuesday
    • Default: true
    • Show or hide the tuesday hours.
  • showWednesday
    • Default: true
    • Show or hide the wednesday hours.
  • showThursday
    • Default: true
    • Show or hide the thursday hours.
  • showFriday
    • Default: true
    • Show or hide the friday hours.
  • showSaturday
    • Default: true
    • Show or hide the saturday hours.
  • showSunday
    • Default: true
    • Show or hide the sunday hours.
  • label
    • Default: Our Opening Hours:
    • Specify the text for the label.

Here’s an example of how to use these arguments:

<?php if( function_exists( 'aioseo_local_opening_hours' ) ) aioseo_local_opening_hours( array(
	'locationId' 		=> '1',
	'showTitle' 		=> 'true',
	'showIcons'  		=> 'true',
	'showMonday' 		=> 'true',
	'showTuesday' 	    => 'true',
	'showWednesday 		=> 'true',
	'showThursday'      => 'true',
	'showFriday'   		=> 'true',
	'showSaturday'   	=> 'true',
	'showSunday'   		=> 'true',
	'label'   	        => 'true'
) ); ?>