media_row_actions

過濾鉤子
apply_filters( 'media_row_actions', $actions, $post, $this->detached )
引數
  • (string[]) $actions An array of action links for each attachment. Default 'Edit', 'Delete Permanently', 'View'.
    Required:
  • (WP_Post) $post WP_Post object for the current attachment.
    Required:
  • (bool) $detached Whether the list table contains media not attached to any posts. Default true.
    Required:
定義位置
相關勾子
tag_row_actionspage_row_actionsuser_row_actionscomment_row_actionsms_user_row_actions
相關方法
do_actionmedia_buttonswp_media_attach_actiondid_actionmedia_upload_audiodoing_action
引入
2.8.0
棄用
-

media_row_actions 是一個過濾器,它允許你新增或修改出現在媒體庫中每個專案的行中的動作。

過濾媒體列表表中每個附件的行動連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
return apply_filters( 'media_row_actions', $actions, $post, $this->detached );

常見問題

FAQs
檢視更多 >