woocommerce_plugins_activate_error

woocommerce_plugins_activate_error

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_plugins_activate_error') is found 1 times:

  • /src/Admin/PluginsHelper.php line 475
    				 * @param null|WP_Error $result The result of the plugin activation.
    				 *
    				 * @since 6.4.0
    				 */
    				do_action( 'woocommerce_plugins_activate_error', $slug, $result );
    
    				/* translators: %s: plugin slug (example: woocommerce-services) */
    				$message = sprintf( __( 'The requested plugin `%s` could not be activated.', 'woocommerce' ), $slug );
    				$errors->add(
    					$plugin,
    					$message
    

See this hook used in plugins: