Skip to content

Instantly share code, notes, and snippets.

@BeardedGinger
Created May 22, 2015 05:01
Show Gist options
  • Select an option

  • Save BeardedGinger/e080cd2b865390c8f137 to your computer and use it in GitHub Desktop.

Select an option

Save BeardedGinger/e080cd2b865390c8f137 to your computer and use it in GitHub Desktop.
add_action( 'init', 'bg_shop_functions' );
function bg_shop_functions() {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
add_action( 'woocommerce_single_product_summary', 'add_shop_for_item_button', 20 );
add_action( 'woocommerce_single_product_summary', 'add_wishlist_form', 30 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment