Filter hook 'update_plugin_complete_actions'

in WP Core File wp-admin/includes/class-plugin-upgrader-skin.php at line 117

View Source

update_plugin_complete_actions

Filter Hook
Description
Filters the list of action links available following a single plugin update.

Hook Information

File Location wp-admin/includes/class-plugin-upgrader-skin.php View on GitHub
Hook Type Filter
Line Number 117

Hook Parameters

Type Name Description
string[] $update_actions Array of plugin action links.
string $plugin Path to the plugin file relative to the plugins directory.

Usage Examples

Basic Usage
<?php
// Hook into update_plugin_complete_actions
add_filter('update_plugin_complete_actions', 'my_custom_filter', 10, 2);

function my_custom_filter($update_actions, $plugin) {
    // Your custom filtering logic here
    return $update_actions;
}

Source Code Context

wp-admin/includes/class-plugin-upgrader-skin.php:117 - How this hook is used in WordPress core
<?php
 112  		 * @since 2.7.0
 113  		 *
 114  		 * @param string[] $update_actions Array of plugin action links.
 115  		 * @param string   $plugin         Path to the plugin file relative to the plugins directory.
 116  		 */
 117  		$update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin );
 118  
 119  		if ( ! empty( $update_actions ) ) {
 120  			$this->feedback( implode( ' | ', (array) $update_actions ) );
 121  		}
 122  	}

PHP Documentation

<?php
/**
		 * Filters the list of action links available following a single plugin update.
		 *
		 * @since 2.7.0
		 *
		 * @param string[] $update_actions Array of plugin action links.
		 * @param string   $plugin         Path to the plugin file relative to the plugins directory.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/class-plugin-upgrader-skin.php
Related Hooks

Related hooks will be displayed here in future updates.