WordPress at Your Fingertips
function is not described

WooCommerce::on_plugins_loaded() public WC 3.6.0

When WP has loaded all plugins, trigger the woocommerce_loaded

This ensures woocommerce_loaded called only after all other plugins are loaded, to avoid issues caused by plugin directory naming changing the load order. See #21524 for details.

{} It's a method of the class: WooCommerce{}

Hooks from the method
Return

null. Nothing.

Usage

$WooCommerce = new WooCommerce();
$WooCommerce->on_plugins_loaded();

Changelog

Since 3.6.0 Introduced.

Code of WooCommerce::on_plugins_loaded() WC 5.6.0

public function on_plugins_loaded() {
	do_action( 'woocommerce_loaded' );
}