Skip to content

Instantly share code, notes, and snippets.

@curtismchale
Last active August 29, 2015 14:03
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 curtismchale/514bdaceb0568284d23e to your computer and use it in GitHub Desktop.
Save curtismchale/514bdaceb0568284d23e to your computer and use it in GitHub Desktop.
<?php
/**
* Allows you to override any custom message or the default message for users
*
* @param string $message stock Easy Content Restriction message
* @param int $product_ids The post_id array for the product the message would be tied to
* @return string Your custom message
*/
function change_global_message( $message, $product_ids ) {
return 'Our custom message';
}
add_filter( 'wecr_restricted_content_message_global', 'change_global_message' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment