restrict_manage_sites

動作鉤子
do_action( 'restrict_manage_sites', $which )
引數
  • (string) $which The location of the extra table nav markup: 'top' or 'bottom'.
    Required:
定義位置
相關勾子
restrict_manage_usersrestrict_manage_postsrestrict_manage_commentspre_get_sitesrest_avatar_sizes
相關方法
is_main_siteget_admin_page_titleget_language_attributesget_main_site_idget_page_statusesprint_late_styles
引入
5.3.0
棄用
-

restrict_manage_sites: 這是一個動作鉤子,當管理站點螢幕顯示在WordPress儀表盤上時被觸發。它可以用來為管理網站的螢幕新增額外的控制或定製功能。

在MS站點列表表的”過濾器”按鈕之前觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'restrict_manage_sites', $which );
do_action( 'restrict_manage_sites', $which );
do_action( 'restrict_manage_sites', $which );

常見問題

FAQs
檢視更多 >