install_plugin_complete_actions
Filters the list of action links available following a single plugin installation.
Usage
add_filter( 'install_plugin_complete_actions', 'wp_kama_install_plugin_complete_actions_filter', 10, 3 ); /** * Function for `install_plugin_complete_actions` filter-hook. * * @param string[] $install_actions Array of plugin action links. * @param object $api Object containing WordPress.org API plugin data. Empty for non-API installs, such as when a plugin is installed via upload. * @param string $plugin_file Path to the plugin file relative to the plugins directory. * * @return string[] */ function wp_kama_install_plugin_complete_actions_filter( $install_actions, $api, $plugin_file ){ // filter... return $install_actions; }
- $install_actions(string[])
- Array of plugin action links.
- $api(object)
- Object containing WordPress.org API plugin data. Empty for non-API installs, such as when a plugin is installed via upload.
- $plugin_file(string)
- Path to the plugin file relative to the plugins directory.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
install_plugin_complete_actions
wp-admin/includes/class-plugin-installer-skin.php 178
$install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file );