restrict_manage_posts

動作鉤子
do_action( 'restrict_manage_posts', $this->screen->post_type, $which )

restrict_manage_posts: 這是一個動作鉤子,當管理文章的介面顯示在WordPress儀表盤上時被觸發。它可以用來為管理文章的介面新增額外的控制或自定義功能。

這個動作記錄在wp-admin/includes/class-wp-posts-list-table.php。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );

常見問題

FAQs
檢視更多 >