Description
This hook allows you to filter the message that is displayed to a user when they attempt to view content that is restricted by the subscription shortcode:
- [[wp-members status=sub]This is subscription content[/wp-members]]
- [wpmem_logged_in status=sub]This is subscription content[/wpmem_logged_in]
Parameters
$msg
(string) (required) A string containing the message.
Changelog
Introduced in version 0.1
Source
wpmem_exp_sc_expmsg is located in module.php
Usage
add_filter( 'wpmem_exp_sc_expmsg', 'my_sc_expired_msg' ); function my_sc_expired_msg( $msg ) { /** * Example changes the default message if the account has expired. */ return 'Sorry, your account has expired. Renew to view this content'; }
See a list of all filter and action hooks