upgrader_overwrote_package

upgrader_overwrote_package

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('upgrader_overwrote_package') is found 2 times:

  • /wp-admin/includes/class-plugin-upgrader.php line 169
    			 * @param string  $package      The package file.
    			 * @param array   $data         The new plugin or theme data.
    			 * @param string  $package_type The package type ('plugin' or 'theme').
    			 */
    			do_action( 'upgrader_overwrote_package', $package, $this->new_plugin_data, 'plugin' );
    		}
    
    		return true;
    	}
    
    	/**
    
  • /wp-admin/includes/class-theme-upgrader.php line 274
    		wp_clean_themes_cache( $parsed_args['clear_update_cache'] );
    
    		if ( $parsed_args['overwrite_package'] ) {
    			/** This action is documented in wp-admin/includes/class-plugin-upgrader.php */
    			do_action( 'upgrader_overwrote_package', $package, $this->new_theme_data, 'theme' );
    		}
    
    		return true;
    	}
    
    	/**