pre_auto_update

pre_auto_update

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('pre_auto_update') is found 1 times:

  • /wp-admin/includes/class-wp-automatic-updater.php line 401
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    * @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 );