2020-05-02 / 2841阅 / 悠然
将子菜单页面添加到“链接”主菜单。
此功能具有一项功能,该功能将用于确定菜单中是否包含页面。
连接到处理页面输出的功能必须检查用户是否也具有所需的功能。
(string)
(Required)
The text to be displayed in the title tags of the page when the menu is selected.
(string)
(Required)
The text to be used for the menu.
(string)
(Required)
The capability required for this menu to be displayed to the user.
(string)
(Required)
The slug name to refer to this menu by (should be unique for this menu).
(callable)
(Optional)
The function to be called to output the content for this page.
Default value: ''
(int)
(Optional)
The position in the menu order this item should appear.
Default value: null
(string|false) The resulting page's hook_suffix, or false if the user does not have the capability required.