woocommerce_plugins_install_before

woocommerce_plugins_install_before

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_plugins_install_before') is found 1 times:

  • /src/Admin/PluginsHelper.php line 326
    			 * Action triggered before a plugin is installed.
    			 *
    			 * @since 9.8
    			 */
    			do_action( 'woocommerce_plugins_install_before', $slug, $source );
    
    			$upgrader = new Plugin_Upgrader( new Automatic_Upgrader_Skin() );
    			$result   = $upgrader->install( $api->download_link );
    			// result can be false or WP_Error.
    			$results[ $plugin ] = $result;
    			$time[ $plugin ]    = round( ( microtime( true ) - $start_time ) * 1000 );