首页 WordPress函数大全 is_nav_menu()

is_nav_menu()

2020-05-02 / 3799阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

is_nav_menu( int|string|WP_Term $menu )

Check if the given ID is a navigation menu.

描述

Returns true if it is; false otherwise.

参数

$menu

(int|string|WP_Term)
(Required)
Menu ID, slug, name, or object of menu to check.

返回

(bool) Whether the menu exists.

大家谈论
    我的见解