woocommerce/widgets/widget-init.php

44 lines
1.6 KiB
PHP
Raw Normal View History

2011-08-10 17:11:11 +00:00
<?php
/**
* Widgets init
*
* Init the widgets.
*
* @package WooCommerce
* @category Widgets
* @author WooThemes
*/
include_once('widget-cart.php');
include_once('widget-featured_products.php');
include_once('widget-layered_nav.php');
include_once('widget-price_filter.php');
include_once('widget-product_categories.php');
include_once('widget-product_search.php');
include_once('widget-product_tag_cloud.php');
include_once('widget-recent_products.php');
2011-08-27 11:53:46 +00:00
include_once('widget-top_rated_products.php');
2011-08-29 10:38:01 +00:00
include_once('widget-recent_reviews.php');
2011-08-29 13:34:36 +00:00
include_once('widget-recently_viewed.php');
2011-11-01 15:41:47 +00:00
include_once('widget-best_sellers.php');
include_once('widget-onsale.php');
2011-11-07 13:27:36 +00:00
include_once('widget-login.php');
include_once('widget-random_products.php');
2011-08-10 17:11:11 +00:00
function woocommerce_register_widgets() {
register_widget('WooCommerce_Widget_Recent_Products');
register_widget('WooCommerce_Widget_Featured_Products');
register_widget('WooCommerce_Widget_Product_Categories');
register_widget('WooCommerce_Widget_Product_Tag_Cloud');
2011-08-10 17:11:11 +00:00
register_widget('WooCommerce_Widget_Cart');
register_widget('WooCommerce_Widget_Layered_Nav');
register_widget('WooCommerce_Widget_Price_Filter');
register_widget('WooCommerce_Widget_Product_Search');
2011-08-27 11:53:46 +00:00
register_widget('WooCommerce_Widget_Top_Rated_Products');
2011-08-29 10:38:01 +00:00
register_widget('WooCommerce_Widget_Recent_Reviews');
2011-08-29 13:34:36 +00:00
register_widget('WooCommerce_Widget_Recently_Viewed');
2011-11-01 15:41:47 +00:00
register_widget('WooCommerce_Widget_Best_Sellers');
register_widget('WooCommerce_Widget_On_Sale');
2011-11-07 13:27:36 +00:00
register_widget('WooCommerce_Widget_Login');
register_widget('WooCommerce_Widget_Random_Products');
2011-08-10 17:11:11 +00:00
}
add_action('widgets_init', 'woocommerce_register_widgets');