install_plugin_complete_actions

过滤钩子
apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file )
参数
  • (string[]) $install_actions Array of plugin action links.
    Required:
  • (object) $api Object containing WordPress.org API plugin data. Empty for non-API installs, such as when a plugin is installed via upload.
    Required:
  • (string) $plugin_file Path to the plugin file relative to the plugins directory.
    Required:
定义位置
相关勾子
install_plugin_overwrite_actionsupdate_plugin_complete_actionsinstall_theme_complete_actionsupdate_bulk_plugins_complete_actionsinstall_plugin_overwrite_comparison
相关方法
install_plugin_informationinstall_plugins_uploadinstall_plugins_favorites_formuninstall_pluginis_plugin_activeinstall_plugin_install_status
引入
2.7.0
弃用
-

install_plugin_complete_actions: 这是一个WordPress的过滤钩子,用于将自定义动作添加到插件成功安装后执行的动作列表中。这个钩子可以用来在插件安装后执行额外的任务,如激活插件或显示一个自定义的消息。

过滤单个插件安装后可用的行动链接列表。

$install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file );

常见问题

FAQs
查看更多 >