Last active
September 17, 2018 19:58
-
-
Save NickGreen/aec047d4d45ed5c642d1178eee1293aa to your computer and use it in GitHub Desktop.
Disable One Page Checkout messages
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
| <?php | |
| add_action( 'wp_head', 'opc_disable_messages' ); | |
| function opc_disable_messages(){ | |
| remove_action( 'wcopc_product_selection_fields_before', array( 'PP_One_Page_Checkout', 'opc_messages' )); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment