Reverted template function names for @jameskoster's sanity
This commit is contained in:
parent
b774e84e29
commit
d96661f45b
|
@ -148,318 +148,6 @@ function woocommerce_change_term_counts( $terms, $taxonomies, $args ) {
|
|||
wc_change_term_counts( $terms, $taxonomies, $args );
|
||||
}
|
||||
|
||||
/**
|
||||
* Template functions - soft deprecated
|
||||
*/
|
||||
function woocommerce_template_redirect() {
|
||||
wc_template_redirect();
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_output_content_wrapper' ) ) {
|
||||
function woocommerce_output_content_wrapper() {
|
||||
wc_output_content_wrapper();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_output_content_wrapper_end' ) ) {
|
||||
function woocommerce_output_content_wrapper_end() {
|
||||
wc_output_content_wrapper_end();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_get_sidebar' ) ) {
|
||||
function woocommerce_get_sidebar() {
|
||||
wc_get_sidebar();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_demo_store' ) ) {
|
||||
function woocommerce_demo_store() {
|
||||
wc_demo_store();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_page_title' ) ) {
|
||||
function woocommerce_page_title( $echo = true ) {
|
||||
wc_page_title( $echo );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_product_loop_start' ) ) {
|
||||
function woocommerce_product_loop_start( $echo = true ) {
|
||||
wc_product_loop_start( $echo );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_product_loop_end' ) ) {
|
||||
function woocommerce_product_loop_end( $echo = true ) {
|
||||
wc_product_loop_end( $echo );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_taxonomy_archive_description' ) ) {
|
||||
function woocommerce_taxonomy_archive_description() {
|
||||
wc_taxonomy_archive_description();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_product_archive_description' ) ) {
|
||||
function woocommerce_product_archive_description() {
|
||||
wc_product_archive_description();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_loop_add_to_cart' ) ) {
|
||||
function woocommerce_template_loop_add_to_cart() {
|
||||
wc_template_loop_add_to_cart();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_loop_product_thumbnail' ) ) {
|
||||
function woocommerce_template_loop_product_thumbnail() {
|
||||
wc_template_loop_product_thumbnail();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_loop_price' ) ) {
|
||||
function woocommerce_template_loop_price() {
|
||||
wc_template_loop_price();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_loop_rating' ) ) {
|
||||
function woocommerce_template_loop_rating() {
|
||||
wc_template_loop_rating();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_show_product_loop_sale_flash' ) ) {
|
||||
function woocommerce_show_product_loop_sale_flash() {
|
||||
wc_show_product_loop_sale_flash();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_reset_loop' ) ) {
|
||||
function woocommerce_reset_loop() {
|
||||
wc_reset_loop();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_get_product_schema' ) ) {
|
||||
function woocommerce_get_product_schema() {
|
||||
wc_get_product_schema();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_get_product_thumbnail' ) ) {
|
||||
function woocommerce_get_product_thumbnail() {
|
||||
wc_get_product_thumbnail();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_result_count' ) ) {
|
||||
function woocommerce_result_count() {
|
||||
wc_result_count();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_catalog_ordering' ) ) {
|
||||
function woocommerce_catalog_ordering() {
|
||||
wc_catalog_ordering();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_pagination' ) ) {
|
||||
function woocommerce_pagination() {
|
||||
wc_pagination();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_show_product_images' ) ) {
|
||||
function woocommerce_show_product_images() {
|
||||
wc_show_product_images();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_show_product_thumbnails' ) ) {
|
||||
function woocommerce_show_product_thumbnails() {
|
||||
wc_show_product_thumbnails();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_output_product_data_tabs' ) ) {
|
||||
function woocommerce_output_product_data_tabs() {
|
||||
wc_output_product_data_tabs();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_single_title' ) ) {
|
||||
function woocommerce_template_single_title() {
|
||||
wc_template_single_title();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_single_rating' ) ) {
|
||||
function woocommerce_template_single_rating() {
|
||||
wc_template_single_rating();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_single_price' ) ) {
|
||||
function woocommerce_template_single_price() {
|
||||
wc_template_single_price();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_single_excerpt' ) ) {
|
||||
function woocommerce_template_single_excerpt() {
|
||||
wc_template_single_excerpt();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_single_meta' ) ) {
|
||||
function woocommerce_template_single_meta() {
|
||||
wc_template_single_meta();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_single_sharing' ) ) {
|
||||
function woocommerce_template_single_sharing() {
|
||||
wc_template_single_sharing();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_show_product_sale_flash' ) ) {
|
||||
function woocommerce_show_product_sale_flash() {
|
||||
wc_show_product_sale_flash();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_single_add_to_cart' ) ) {
|
||||
function woocommerce_template_single_add_to_cart() {
|
||||
wc_template_single_add_to_cart();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_simple_add_to_cart' ) ) {
|
||||
function woocommerce_simple_add_to_cart() {
|
||||
wc_simple_add_to_cart();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_grouped_add_to_cart' ) ) {
|
||||
function woocommerce_grouped_add_to_cart() {
|
||||
wc_grouped_add_to_cart();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_variable_add_to_cart' ) ) {
|
||||
function woocommerce_variable_add_to_cart() {
|
||||
wc_variable_add_to_cart();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_external_add_to_cart' ) ) {
|
||||
function woocommerce_external_add_to_cart() {
|
||||
wc_external_add_to_cart();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_quantity_input' ) ) {
|
||||
function woocommerce_quantity_input( $args = array() ) {
|
||||
wc_quantity_input( $args );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_product_description_tab' ) ) {
|
||||
function woocommerce_product_description_tab() {
|
||||
wc_product_description_tab();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_product_additional_information_tab' ) ) {
|
||||
function woocommerce_product_additional_information_tab() {
|
||||
wc_product_additional_information_tab();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_product_reviews_tab' ) ) {
|
||||
function woocommerce_product_reviews_tab() {
|
||||
wc_product_reviews_tab();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_default_product_tabs' ) ) {
|
||||
function woocommerce_default_product_tabs( $tabs = array() ) {
|
||||
wc_default_product_tabs( $tabs );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_sort_product_tabs' ) ) {
|
||||
function woocommerce_sort_product_tabs( $tabs = array() ) {
|
||||
wc_sort_product_tabs( $tabs );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_comments' ) ) {
|
||||
function woocommerce_comments( $comment, $args, $depth ) {
|
||||
wc_comments( $comment, $args, $depth );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_output_related_products' ) ) {
|
||||
function woocommerce_output_related_products() {
|
||||
wc_output_related_products();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_related_products' ) ) {
|
||||
function woocommerce_related_products( $args = array(), $columns = false, $orderby = false ) {
|
||||
wc_related_products( $args, $columns, $orderby );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_upsell_display' ) ) {
|
||||
function woocommerce_upsell_display( $posts_per_page = '-1', $columns = 2, $orderby = 'rand' ) {
|
||||
wc_upsell_display( $posts_per_page, $columns, $orderby );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_shipping_calculator' ) ) {
|
||||
function woocommerce_shipping_calculator() {
|
||||
wc_shipping_calculator();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_cart_totals' ) ) {
|
||||
function woocommerce_cart_totals() {
|
||||
wc_cart_totals();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_cross_sell_display' ) ) {
|
||||
function woocommerce_cross_sell_display( $posts_per_page = 2, $columns = 2, $orderby = 'rand' ) {
|
||||
wc_cross_sell_display( $posts_per_page, $columns, $orderby );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_mini_cart' ) ) {
|
||||
function woocommerce_mini_cart( $args = array() ) {
|
||||
wc_mini_cart( $args );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_login_form' ) ) {
|
||||
function woocommerce_login_form( $args = array() ) {
|
||||
wc_login_form( $args );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_checkout_login_form' ) ) {
|
||||
function woocommerce_checkout_login_form() {
|
||||
wc_checkout_login_form();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_breadcrumb' ) ) {
|
||||
function woocommerce_breadcrumb( $args = array() ) {
|
||||
wc_breadcrumb( $args );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_order_review' ) ) {
|
||||
function woocommerce_order_review() {
|
||||
wc_order_review();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_checkout_coupon_form' ) ) {
|
||||
function woocommerce_checkout_coupon_form() {
|
||||
wc_checkout_coupon_form();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_products_will_display' ) ) {
|
||||
function woocommerce_products_will_display() {
|
||||
wc_products_will_display();
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_product_subcategories' ) ) {
|
||||
function woocommerce_product_subcategories( $args = array() ) {
|
||||
wc_product_subcategories( $args );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_subcategory_thumbnail' ) ) {
|
||||
function woocommerce_subcategory_thumbnail( $category ) {
|
||||
wc_subcategory_thumbnail( $category );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_order_details_table' ) ) {
|
||||
function woocommerce_order_details_table( $order_id ) {
|
||||
wc_order_details_table( $order_id );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_order_again_button' ) ) {
|
||||
function woocommerce_order_again_button( $order ) {
|
||||
wc_order_again_button( $order );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_form_field' ) ) {
|
||||
function woocommerce_form_field( $key, $args, $value = null ) {
|
||||
wc_form_field( $key, $args, $value );
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_products_rss_feed' ) ) {
|
||||
function woocommerce_products_rss_feed() {
|
||||
wc_products_rss_feed();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Product functions - soft deprecated
|
||||
*/
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -13,9 +13,12 @@
|
|||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
add_action( 'the_post', 'wc_setup_product_data' );
|
||||
add_action( 'template_redirect', 'woocommerce_template_redirect' );
|
||||
add_action( 'template_redirect', 'wc_template_redirect' );
|
||||
add_filter( 'body_class', 'wc_body_class' );
|
||||
add_filter( 'post_class', 'wc_product_post_class', 20, 3 );
|
||||
add_action( 'wp_head', 'wc_products_rss_feed' );
|
||||
add_action( 'wp_head', 'wc_generator_tag' );
|
||||
add_action( 'wp_footer', 'wc_print_js', 25 );
|
||||
|
||||
/**
|
||||
* Content Wrappers
|
||||
|
@ -171,23 +174,12 @@ add_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 10
|
|||
*/
|
||||
add_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
|
||||
|
||||
/**
|
||||
* Header
|
||||
*
|
||||
* @see woocommerce_products_rss_feed()
|
||||
* @see wc_generator_tag()
|
||||
*/
|
||||
add_action( 'wp_head', 'woocommerce_products_rss_feed' );
|
||||
add_action( 'wp_head', 'wc_generator_tag' );
|
||||
|
||||
/**
|
||||
* Footer
|
||||
*
|
||||
* @see woocommerce_demo_store()
|
||||
* @see wc_print_js()
|
||||
*/
|
||||
add_action( 'wp_footer', 'woocommerce_demo_store' );
|
||||
add_action( 'wp_footer', 'wc_print_js', 25 );
|
||||
|
||||
/**
|
||||
* Order details
|
||||
|
|
Loading…
Reference in New Issue