manage_plugins_custom_column

動作鉤子
do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data )
引數
  • (string) $column_name Name of the column.
    Required:
  • (string) $plugin_file Path to the plugin file relative to the plugins directory.
    Required:
  • (array) $plugin_data An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values.
    Required:
定義位置
相關勾子
manage_link_custom_columnmanage_pages_custom_columnmanage_posts_custom_columnmanage_users_custom_columnmanage_sites_custom_column
相關方法
get_post_custom_values_get_plugin_from_callbackget_post_customget_post_custom_keys_wp_customize_includewp_plugin_directory_constants
引入
3.1.0
棄用
-

manage_plugins_custom_column 是WordPress的一個動作鉤子,用於在WordPress管理中的”外掛”螢幕的列表檢視中新增自定義列: 當一個自定義列被顯示時,這個鉤子將被呼叫,並且可以定義該列的內容。這個鉤子允許開發者在”外掛”螢幕上新增對網站管理員有用的額外資訊。例如,一個外掛的最後更新日期,外掛的版本號,或其他相關資訊。

在外掛列表表的每個自定義列中觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data );
do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data );
do_action( 'manage_plugins_custom_column', $column_name, $plugin_file, $plugin_data );

常見問題

FAQs
檢視更多 >