WC_Brands::init_widgets()publicWC 1.0

Initializes brand widgets.

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

Хуков нет.

Возвращает

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

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

$WC_Brands = new WC_Brands();
$WC_Brands->init_widgets();

Код WC_Brands::init_widgets() WC 9.4.2

public function init_widgets() {
	// Include.
	require_once WC()->plugin_path() . '/includes/widgets/class-wc-widget-brand-description.php';
	require_once WC()->plugin_path() . '/includes/widgets/class-wc-widget-brand-nav.php';
	require_once WC()->plugin_path() . '/includes/widgets/class-wc-widget-brand-thumbnails.php';

	// Register.
	register_widget( 'WC_Widget_Brand_Description' );
	register_widget( 'WC_Widget_Brand_Nav' );
	register_widget( 'WC_Widget_Brand_Thumbnails' );
}