WooCommerce::on_plugins_loaded()publicWC 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.

Метод класса: WooCommerce{}

Хуки из метода


null. Ничего (null).


$WooCommerce = new WooCommerce();

Список изменений

С версии 3.6.0 Введена.

Код WooCommerce::on_plugins_loaded() WC 8.9.3

public function on_plugins_loaded() {
	 * Action to signal that WooCommerce has finished loading.
	 * @since 3.6.0
	do_action( 'woocommerce_loaded' );