woocommerce_admin_plugins_pre_install

woocommerce_admin_plugins_pre_install

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_admin_plugins_pre_install') is found 1 times:

  • /src/Admin/PluginsHelper.php line 228
    		 * @param array $plugins A list of the plugins to install.
    		 *
    		 * @since 6.4.0
    		 */
    		$plugins = apply_filters( 'woocommerce_admin_plugins_pre_install', $plugins );
    
    		if ( empty( $plugins ) || ! is_array( $plugins ) ) {
    			return new WP_Error(
    				'woocommerce_plugins_invalid_plugins',
    				__( 'Plugins must be a non-empty array.', 'woocommerce' )
    			);
    

See this hook used in plugins: