woocommerce/widgets/widget-init.php

57 lines
1.9 KiB
PHP
Raw Normal View History

2011-08-10 17:11:11 +00:00
<?php
/**
* Widgets init
2012-08-14 17:37:50 +00:00
*
2011-08-10 17:11:11 +00:00
* Init the widgets.
*
2012-08-14 17:37:50 +00:00
* @author WooThemes
* @category Widgets
* @package WooCommerce/Widgets
* @version 1.6.4
2011-08-10 17:11:11 +00:00
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
2012-08-14 17:37:50 +00:00
/**
* woocommerce_register_widgets function.
*
* @access public
* @return void
*/
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_Layered_Nav_Filters');
2011-08-10 17:11:11 +00:00
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
}
2012-08-15 18:35:36 +00:00
add_action('widgets_init', 'woocommerce_register_widgets');
include_once('widget-cart.php');
include_once('widget-featured_products.php');
include_once('widget-layered_nav.php');
include_once('widget-layered_nav_filters.php');
2012-08-15 18:35:36 +00:00
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');
include_once('widget-top_rated_products.php');
include_once('widget-recent_reviews.php');
include_once('widget-recently_viewed.php');
include_once('widget-best_sellers.php');
include_once('widget-onsale.php');
include_once('widget-login.php');
include_once('widget-random_products.php');