WooCommerce::on_plugins_loaded
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.
Method of the class: WooCommerce{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->on_plugins_loaded();
Changelog
| Since 3.6.0 | Introduced. |
WooCommerce::on_plugins_loaded() WooCommerce::on plugins loaded code WC 10.7.0
public function on_plugins_loaded() {
/**
* Action to signal that WooCommerce has finished loading.
*
* @since 3.6.0
*/
do_action( 'woocommerce_loaded' );
}