wp_nav_locations_listed_per_menu

過濾鉤子
apply_filters( 'wp_nav_locations_listed_per_menu', 3 )

wp_nav_locations_listed_per_menu:這是 WordPress 中的過濾器鉤子。它允許您修改 WordPress 定製器中每個選單列出的導航選單位置的數量。使用此鉤子時,您可以指定定製器中每個選單應列出的選單位置數。如果您想在定製器中以緊湊的方式顯示大量選單位置,這會很有用。

過濾下拉選擇中每個選單列出的地點數量。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$locations_listed_per_menu = absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) );
$locations_listed_per_menu = absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) );
$locations_listed_per_menu = absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) );

常見問題

FAQs
檢視更多 >