Nua_email_tags
Modify The List Of Email Tags That Are Used In The New User Approve Plugin. You Can Both Add A New Tag To The List Or Remove A Tag That You Feel You Won’t Need.
/**
* Add a new email tag
* $tags an array of the current email tags
*/
function add_email_tag( $tags ) {
$tags[] = array(
'tag' => 'some_url',
'description' => __( 'Some URL to add to the New User Approve emails' ),
'function' => 'my_new_email_tag',
'context' => array( 'email' ),
);
}
add_filter( 'nua_email_tags', 'add_email_tag' );
/**
* Now when I add '{some_url}' to an email template, that text will be
* replaced by using the function below.
*/
function my_new_email_tag() {
return 'http://some-url.com/';
}