Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not really, there’s just the two out of box.

    Are you looking more for the sent-to-user email or the sent-to-admin email? I believe I have filters in place on message content in a couple places that could be used to do your own php string replacement, which is all we do. Just need to determine which place you intend this for so I can point to the correct filter.

    Thread Starter navyspitfire

    (@navyspitfire)

    Sent to user. Essentially I want to swap out all instances of username for first name, or email if first name is not doable.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Looks like I have the following in the current version:

    When a user is approved or denied:

    $mailme = array(
    	'user_email' => $user->data->user_email,
    	'user_subject' => $subject,
    	'user_message' => str_replace( '[username]', $user->data->user_login, $message )
    );
    
    $mailme_filtered = apply_filters( 'bpro_hook_before_email', $mailme, $user );

    The $message variable is the appropriate spot from the options page.
    The $mailme array gets passed through the filter, and you could have your own shortcodes at the moment that you can filter/replace with whatever data you want. We provide the $user object as well, so you can grab what you need.

    We also have one for the admin email, but you’re focused more on the user-email.

    We do NOT have a filter available for the activation’s pending email at the moment.

    Going to leave this tab open so that I can remind myself to file enhancement issues for some of these spots and get them filled in in a future version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email shortcodes’ is closed to new replies.