upgrader_clear_destination

upgrader_clear_destination

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('upgrader_clear_destination') is found 1 times:

  • /wp-admin/includes/class-wp-upgrader.php line 641
    			 * @param string        $local_destination  The local package destination.
    			 * @param string        $remote_destination The remote package destination.
    			 * @param array         $hook_extra         Extra arguments passed to hooked filters.
    			 */
    			$removed = apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] );
    
    			if ( is_wp_error( $removed ) ) {
    				return $removed;
    			}
    		} elseif ( $args['abort_if_destination_exists'] && $wp_filesystem->exists( $remote_destination ) ) {
    			/*
    

See this hook used in plugins: