首页 WordPress函数大全 menu_page_url()

menu_page_url()

2020-05-02 / 4776阅 / 悠然

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

menu_page_url( string $menu_slug, bool $echo = true )

获取URL以访问基于>的特定菜单页面

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
  • User Contributed Notes

描述

如果该子弹未正确注册,则不会返回任何URL。

参数

$menu_slug

(string)
(Required)
The slug name to refer to this menu by (should be unique for this menu).

$echo

(bool)
(Optional)
Whether or not to echo the URL.

Default value: true

返回

(string) The menu page URL.

大家谈论
    我的见解