after_plugin_row_{$plugin_file}

動作鉤子
do_action( "after_plugin_row_{$plugin_file}", $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_rowplugin_action_links_plugin_filenetwork_admin_plugin_action_links_plugin_fileplugin_row_metamanage_plugins_custom_column
相關方法
wp_print_plugin_file_treeget_plugin_filesadd_plugins_pagepaused_plugins_noticedeactivated_plugins_noticeis_plugin_inactive
引入
5.5.0
棄用
-

after_plugin_row_{$plugin_file}是WordPress的一個鉤子,它允許你在WordPress管理面板的”外掛”頁面中的外掛行後立即新增自定義內容或操作。

在外掛列表表中的每一特定行後觸發。

鉤子名稱的動態部分,$plugin_file,指的是外掛檔案的路徑,相對於外掛目錄。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );

常見問題

FAQs
檢視更多 >