pre_auto_update

pre_auto_update

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('pre_auto_update') is found 1 times:

  • /wp-admin/includes/class-wp-automatic-updater.php line 401
    		 * @param object $item    The update offer.
    		 * @param string $context The filesystem context (a path) against which filesystem access and status
    		 *                        should be checked.
    		 */
    		do_action( 'pre_auto_update', $type, $item, $context );
    
    		$upgrader_item = $item;
    		switch ( $type ) {
    			case 'core':
    				/* translators: %s: WordPress version. */
    				$skin->feedback( __( 'Updating to WordPress %s' ), $item->version );