Skip to content

Instantly share code, notes, and snippets.

@zackeryfretty
Created March 3, 2023 21:25
Show Gist options
  • Save zackeryfretty/c14cc6b1c54b412b4c0a971b715a3438 to your computer and use it in GitHub Desktop.
Save zackeryfretty/c14cc6b1c54b412b4c0a971b715a3438 to your computer and use it in GitHub Desktop.
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' );
}
add_action( 'plugins_loaded', 'zf_clear_quick_view' );
function zf_rebuild_quick_view_left_column() {
echo 'QV Left Column';
}
add_action( 'wpbf_woo_quick_view_product_image', 'zf_rebuild_quick_view_left_column' );
function zf_rebuild_quick_view_right_column() {
echo 'QV Right Column';
}
add_action( 'wpbf_woo_quick_view_product_summary', 'zf_rebuild_quick_view_right_column' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment