WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WC_Shortcodes::init() public WC 1.0

Init shortcodes.

Это метод класса: WC_Shortcodes{}

Хуки из метода
Возвращает

Null. Ничего.

Использование

$result = WC_Shortcodes::init();

Код WC_Shortcodes::init() WC 4.5.2

<?php
public static function init() {
	$shortcodes = array(
		'product'                    => __CLASS__ . '::product',
		'product_page'               => __CLASS__ . '::product_page',
		'product_category'           => __CLASS__ . '::product_category',
		'product_categories'         => __CLASS__ . '::product_categories',
		'add_to_cart'                => __CLASS__ . '::product_add_to_cart',
		'add_to_cart_url'            => __CLASS__ . '::product_add_to_cart_url',
		'products'                   => __CLASS__ . '::products',
		'recent_products'            => __CLASS__ . '::recent_products',
		'sale_products'              => __CLASS__ . '::sale_products',
		'best_selling_products'      => __CLASS__ . '::best_selling_products',
		'top_rated_products'         => __CLASS__ . '::top_rated_products',
		'featured_products'          => __CLASS__ . '::featured_products',
		'product_attribute'          => __CLASS__ . '::product_attribute',
		'related_products'           => __CLASS__ . '::related_products',
		'shop_messages'              => __CLASS__ . '::shop_messages',
		'woocommerce_order_tracking' => __CLASS__ . '::order_tracking',
		'woocommerce_cart'           => __CLASS__ . '::cart',
		'woocommerce_checkout'       => __CLASS__ . '::checkout',
		'woocommerce_my_account'     => __CLASS__ . '::my_account',
	);

	foreach ( $shortcodes as $shortcode => $function ) {
		add_shortcode( apply_filters( "{$shortcode}_shortcode_tag", $shortcode ), $function );
	}

	// Alias for pre 2.1 compatibility.
	add_shortcode( 'woocommerce_messages', __CLASS__ . '::shop_messages' );
}