Skip to content

Instantly share code, notes, and snippets.

@danielpowney
Last active February 10, 2017 10:49
Show Gist options
  • Save danielpowney/e0df5f3567edac748d914ec94c2b7e20 to your computer and use it in GitHub Desktop.
Save danielpowney/e0df5f3567edac748d914ec94c2b7e20 to your computer and use it in GitHub Desktop.
<?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