// Adding a custom checkout date field add_filter( 'woocommerce_billing_fields', 'add_birth_date_billing_field', 20, 1 ); function add_birth_date_billing_field($billing_fields)read more...
// Add category title add_action('woocommerce_before_main_content', 'show_category_title', 10, 2); function show_category_title() { $cat_title = single_tag_title("", false);read more...
// Add new stock status options function filter_woocommerce_product_stock_status_options( $status ) { // Add new statusesread more...
add_filter( 'woocommerce_product_reviews_tab_title', 'add_stars_to_reviews_tab_item', 98 ); function add_stars_to_reviews_tab_item( $title ) { global $product; $average_rating = $product->get_average_rating();read more...
add_action( 'wp_enqueue_scripts', 'ets_deactivate_pass_strength_meter', 10 ); function ets_deactivate_pass_strength_meter() { wp_dequeue_script( 'wc-password-strength-meter' ); } read more...
add_filter( 'the_title', 'shorten_woo_product_title', 10, 2 ); function shorten_woo_product_title( $title, $id ) { if ( !read more...
add_filter( 'woocommerce_checkout_fields' , 'ets_add_field_and_reorder_fields' ); function ets_add_field_and_reorder_fields( $fields ) { // Add New Fields $fields['billing']['billing_houseno']read more...
add_action( 'woocommerce_after_shop_loop_item', 'ets_show_stock_shop', 10 ); function ets_show_stock_shop() { global $product; echo wc_get_stock_html( $product ); }read more...
add_filter( 'woocommerce_get_availability', 'custom_get_availability', 1, 2); function custom_get_availability( $availability, $_product ) { //change text "Inread more...
// This adds "New" badge on your product image add_action( 'woocommerce_before_single_product_summary', 'new_product_button' , 20); add_action(read more...
add_filter( 'woocommerce_get_price_html', 'change_variable_products_price_display', 10, 2 ); function change_variable_products_price_display( $price, $product ) { // Only forread more...