関数:aioseo_local_opening_hours()

営業時間情報を表示するには、以下の機能を使用します。

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

以下のオプションがサポートされている:

  • locationId
    • デフォルト: "
    • 複数ロケーションがオンの場合は、ロケーションのIDを使用する。
    • 複数拠点がオフの場合(location_idが空の場合)、AIOSEO -> Local Seo -> 営業時間のビジネス情報が使用されます。
  • ショータイトル
    • デフォルト:true
    • タイトルを表示または非表示にする。
  • ショーアイコン
    • デフォルト:true
    • アイコンの表示/非表示(住所、電話、ファックス、電子メール)。
  • ショー・マンデー
    • デフォルト:true
    • 月曜の営業時間を表示または非表示にする。
  • ショー火曜日
    • デフォルト:true
    • 火曜日の営業時間を表示または非表示にする。
  • ショー・ウェンズデー
    • デフォルト:true
    • 水曜日の営業時間を表示または非表示にする。
  • ショー木曜日
    • デフォルト:true
    • 木曜日の営業時間の表示・非表示
  • ショーフライデー
    • デフォルト:true
    • 金曜日の営業時間を表示または非表示にする。
  • ショーサタデー
    • デフォルト:true
    • 土曜日の営業時間を表示または非表示にする。
  • ショーサンデー
    • デフォルト:true
    • 日曜日の営業時間を表示または非表示にする。
  • ラベル
    • デフォルト営業時間
    • ラベルのテキストを指定します。

これらの引数の使い方の例を挙げよう:

<?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'
) ); ?>