Skip to content

Instantly share code, notes, and snippets.

@leewillis77
Created March 17, 2020 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leewillis77/9f8f20f56eff59e91b0a698921a811a7 to your computer and use it in GitHub Desktop.
Save leewillis77/9f8f20f56eff59e91b0a698921a811a7 to your computer and use it in GitHub Desktop.
Re-order MSRP display on product pages (WooCommerce MSRP extension)
<?php
add_action( 'init', function () {
global $woocommerce_msrp_frontend;
remove_action(
'woocommerce_single_product_summary',
[ $woocommerce_msrp_frontend, 'show_msrp' ],
7
);
add_action(
'woocommerce_single_product_summary',
[ $woocommerce_msrp_frontend, 'show_msrp' ],
12
);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment