Last active
February 10, 2017 10:49
-
-
Save danielpowney/e0df5f3567edac748d914ec94c2b7e20 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Turn off custom text settings. | |
*/ | |
function my_mrp_before_init() { | |
add_filter( 'mrp_disable_custom_text', 'my_mrp_disable_custom_text', 10, 1 ); | |
} | |
add_action( 'mrp_before_init', 'my_mrp_before_init', 11, 0 ); | |
/** | |
* Returns true | |
* | |
* @param unknown $value | |
* @return boolean | |
*/ | |
function my_mrp_disable_custom_text( $value ) { | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment