Skip to content

Instantly share code, notes, and snippets.

View zackeryfretty's full-sized avatar

Zackery Fretty zackeryfretty

View GitHub Profile
function zf_sequential_order_yaymail_shortcode( $shortcode_list, $yaymail_informations, $args = array() ) {
// Real Order Lookup
if (isset ($args['order'])) {
$order = $args['order'];
$order_id = $order->get_order_number();
return $order_id;
}
// YayMail Preview
return 'PRE_XXXX';
@zackeryfretty
zackeryfretty / wpbf-custom-quick-view.php
Created March 3, 2023 21:25
WPBF: Remove Default Quick View Actions & Rebuild
function zf_clear_quick_view() {
// Removes Default Actions in Quick View
remove_action( 'wpbf_woo_quick_view_product_image', 'woocommerce_show_product_images' );
remove_action( 'wpbf_woo_quick_view_product_summary', 'woocommerce_template_single_title' );
remove_action( 'wpbf_woo_quick_view_product_summary', 'woocommerce_template_single_rating' );
remove_action( 'wpbf_woo_quick_view_product_summary', 'woocommerce_template_single_price' );
remove_action( 'wpbf_woo_quick_view_product_summary', 'woocommerce_template_single_excerpt' );
remove_action( 'wpbf_woo_quick_view_product_summary', 'woocommerce_template_single_add_to_cart' );
remove_action( 'wpbf_woo_quick_view_product_summary', 'woocommerce_template_single_meta' );