This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[testimonials columns=1 showposts=1 display_content=true orderby=rand] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Force the shipping calculator to display on cart, even when Local Pickup Plus is selected. | |
*/ | |
function sv_force_display_of_shipping_calculator() { | |
?> | |
<script type="text/javascript"> | |
if ( undefined !== window.jQuery ) { | |
jQuery(function ($) { | |
function show_shipping_calculator() { | |
$( '.woocommerce-shipping-totals' ).each(function(index, el) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wpdean_rand_posts() { | |
$args = array( | |
'post_type' => 'recipe', | |
'orderby'=> 'rand', | |
'posts_per_page' => 3, | |
); | |
$the_query = new WP_Query( $args ); | |
if ( $the_query->have_posts() ) { | |
$string .= '<ul>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wc_pip_document_show_header', function ( $show_header, $type ) { | |
if ( $type === 'packing-list' ) { | |
$show_header = true; | |
} | |
return $show_header; | |
}, 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'astra_apply_flex_based_css', '__return_false' ); | |
/** Supplied via Support Email on 2/26/22 **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'yikes_woocommerce_custom_repeatable_product_tabs_heading', '__return_false' ); | |
/** https://wordpress.org/support/topic/tab-heading/ **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove the additional information tab | |
function quadlayers_remove_product_tabs( $tabs ) { | |
unset( $tabs['additional_information'] ); | |
return $tabs; | |
} | |
add_filter( 'woocommerce_product_tabs', 'quadlayers_remove_product_tabs', 98 ); | |
/** https://quadlayers.com/remove-additional-information-tab-in-woocommerce/ **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_get_availability', 'change_out_of_stock_text_woocommerce', 1, 2 ); | |
function change_out_of_stock_text_woocommerce( $availability, $product_to_check ) { | |
// Change Out of Stock Text | |
if ( ! $product_to_check->is_in_stock() ) { | |
$availability['availability'] = __('Sold Out', 'woocommerce'); | |
} | |
return $availability; | |
} | |
/** https://wpastra.com/docs/change-woocommerce-out-of-stock-text/ **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'astra_woo_shop_out_of_stock_string', 'out_of_stock_callback' ); | |
function out_of_stock_callback( $title ) { | |
return 'Sold Out'; | |
} | |
/** https://wpastra.com/docs/change-woocommerce-out-of-stock-text/ **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change 'add to cart' text on archive product page | |
add_filter( 'woocommerce_product_add_to_cart_text', 'bryce_archive_add_to_cart_text' ); | |
function bryce_archive_add_to_cart_text() { | |
return __( "That's My Jam!", 'your-slug' ); | |
} | |
/** https://metorik.com/blog/change-the-add-to-cart-text-in-woocommerce **/ |
NewerOlder