network_admin_plugin_action_links_{$plugin_file}

过滤钩子
apply_filters( "network_admin_plugin_action_links_{$plugin_file}", $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_linksplugin_action_links_plugin_filenetwork_admin_edit_actionplugin_action_linksafter_plugin_row_plugin_file
相关方法
network_admin_urlwp_print_plugin_file_tree
引入
3.1.0
弃用
-

network_admin_plugin_action_links_{$plugin_file}: 这是一个过滤钩子,允许开发者在网络管理区的”插件”页面上为某个特定的插件添加自定义链接。钩子名称中的”$plugin_file”部分被替换为插件的主文件名。

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

钩子名称的动态部分$plugin_file是指插件文件相对于插件目录的路径。

$actions = apply_filters( "network_admin_plugin_action_links_{$plugin_file}", $actions, $plugin_file, $plugin_data, $context );

常见问题

FAQs
查看更多 >