after_plugin_row

動作鉤子
do_action( 'after_plugin_row', $plugin_file, $plugin_data, $status )
引數
  • (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:
  • (string) $status Status filter currently applied to the plugin list. Possible values are: 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled'.
    Required:
定義位置
相關勾子
after_plugin_row_plugin_fileplugin_row_metaafter_theme_rowactivated_plugindelete_plugin
相關方法
validate_pluginactivate_pluginwp_get_plugin_erroractivate_pluginswp_update_pluginwp_update_plugins
引入
5.5.0
棄用
-

after_plugin_row是一個WordPress動作鉤子,它允許一個外掛在WordPress管理區的”外掛”列表螢幕中的外掛行後新增內容。這個鉤子在一個給定的外掛的內建資訊(如外掛的名稱、版本、作者等)被顯示之後被執行。這個鉤子為外掛提供了一種新增額外資訊的方式,如與外掛有關的資訊或連結。

在外掛列表表的每一行之後觸發。

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

常見問題

FAQs
檢視更多 >