Created
July 18, 2014 04:01
-
-
Save curtismchale/218f847befe2da693e2c to your computer and use it in GitHub Desktop.
This file contains 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 | |
/** | |
* Overrides the default message for subscription type products | |
* | |
* @param string $message stock Easy Content Restriction message | |
* @param int $product_id The post_id for the product the message would be tied to | |
* @return string Your custom message | |
*/ | |
function change_subscription_message( $message, $product_id ) { | |
return 'Our custom message'; | |
} | |
add_filter( 'wecr_subscription_message', 'change_subscription_message' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment