Skip to content

Instantly share code, notes, and snippets.

@alessandrotesoro
Created March 29, 2016 10:08
Show Gist options
  • Save alessandrotesoro/52a4ed3086b47758ed0d to your computer and use it in GitHub Desktop.
Save alessandrotesoro/52a4ed3086b47758ed0d to your computer and use it in GitHub Desktop.
WPUM Email tag
function wpum_add_sample_email_tag( $user_id ) {
wpum_add_email_tag( 'admin_email', 'This tag can be used to output the admin email', 'wpum_site_get_admin_email' );
}
add_action( 'wpum_add_email_tags', 'wpum_add_sample_email_tag' );
function wpum_site_get_admin_email() {
return get_bloginfo( 'admin_email' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment