Created
March 3, 2023 21:25
-
-
Save zackeryfretty/c14cc6b1c54b412b4c0a971b715a3438 to your computer and use it in GitHub Desktop.
WPBF: Remove Default Quick View Actions & Rebuild
This file contains hidden or 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 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