How do I edit the content of the emails?

Currently the only way the content of the emails can be modified is by using filters.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * Modify the message sent to a user after being approved.
 *
 * @param $message The default message.
 * @param $user The user who will receive the message.
 * @return string the updated message.
 */
function my_custom_message( $message, $user ) {
    $message = 'Custom message here';
 
    return $message;
}
// add a new custom approval message
add_filter( 'new_user_approve_approve_user_message', 'my_custom_message', 10, 2 );
 
// add a new custom denial message
add_filter( 'new_user_approve_deny_user_message', 'my_custom_message', 10, 2 );

The Options Addon provides a user interface to modify the content of all emails sent by the plugin.

Scroll to Top