post_row_actions

過濾鉤子
apply_filters( 'post_row_actions', $actions, $post )
引數
  • (string[]) $actions An array of row action links. Defaults are 'Edit', 'Quick Edit', 'Restore', 'Trash', 'Delete Permanently', 'Preview', and 'View'.
    Required:
  • (WP_Post) $post The post object.
    Required:
定義位置
相關勾子
tag_row_actionsuser_row_actionspage_row_actionscomment_row_actionsms_user_row_actions
相關方法
do_actionfavorite_actionsremove_actionhas_action_post_format_linkshutdown_action_hook
引入
2.8.0
棄用
-

post_row_actions: 這是WordPress的一個過濾鉤子,允許你在管理面板的文章列表表中修改文章的可用操作。這個鉤子在文章動作生成時被觸發,允許你從列表中新增或刪除動作。

過濾文章列表表上的行操作連結陣列。

僅對非分級文章型別評估篩選器。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$actions = apply_filters( 'post_row_actions', $actions, $post );
$actions = apply_filters( 'post_row_actions', $actions, $post );
$actions = apply_filters( 'post_row_actions', $actions, $post );

常見問題

FAQs
檢視更多 >