upgrader_pre_install

upgrader_pre_install

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('upgrader_pre_install') is found 1 times:

  • /wp-admin/includes/class-wp-upgrader.php line 552
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    *
     * @param bool|WP_Error $response   Installation response.
     * @param array         $hook_extra Extra arguments passed to hooked filters.
     */
    $res = apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] );
     
    if ( is_wp_error( $res ) ) {
        return $res;
    }
     
    // Retain the original source and destinations.

See this hook used in plugins: