network_admin_plugin_action_links

过滤钩子
apply_filters( 'network_admin_plugin_action_links', $actions, $plugin_file, $plugin_data, $context )
参数
  • (string[]) $actions An array of plugin action links. By default this can include 'activate', 'deactivate', and 'delete'.
    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:
  • (string) $context The plugin context. By default this can include 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.
    Required:
定义位置
相关勾子
network_admin_plugin_action_links_plugin_fileplugin_action_linksnetwork_admin_edit_actionnetwork_admin_noticesnetwork_admin_url
相关方法
network_admin_urlis_network_only_pluginnetwork_domain_checkload_plugin_textdomainis_network_adminwp_network_admin_email_change_notification
引入
3.1.0
弃用
-

network_admin_plugin_action_links。这个过滤钩子用于过滤WordPress多站点网络中显示在网络管理中的插件的动作链接。该钩子接收动作链接作为参数并返回过滤后的链接。

过滤网络管理插件列表表中为每个插件显示的操作链接。

$actions = apply_filters( 'network_admin_plugin_action_links', $actions, $plugin_file, $plugin_data, $context );

常见问题

FAQs
查看更多 >