• Resolved byzgl

    (@byzgl)


    Thanks for the great plugin. I want to learn if I can send post editor (is_logged_in user) information in email.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Thanks @byzgl!

    Please clarify, you want to include info in the email about who was editing the post?

    Thread Starter byzgl

    (@byzgl)

    yyyes that’s what I meant ??

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Yep, you can use the merge tags {post_updating_user_****}, you’ll find them in the sidebar ??

    Thread Starter byzgl

    (@byzgl)

    I don’t see such an option in the sidebar

    https://prntscr.com/lzubog

    Thread Starter byzgl

    (@byzgl)

    I am using “post saved as a draft” trigger

    Thread Starter byzgl

    (@byzgl)

    I added lines below, to PostTrigger.php under “content/plugins/notification/class/Defaults/Trigger/Post”

    $this->add_merge_tag(
    new MergeTag\User\UserEmail(
    array(
    'slug'      => $this->post_type . '_publishing_user_email',
    // translators: singular post name.
    'name'          => sprintf( __( '%s publishing user email', 'notification' ), $post_name ), 'property_name' => 'publishing_user',
    )
    )
    );

    Thank you..

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Your case is pretty specific. This cause you should use {post_author_***} merge tags, but if someone will change the author it will display the wrong user.

    Also, please note that your change will be removed after the plugin update. You should do it like this.

    Thread Starter byzgl

    (@byzgl)

    wow, thanks for great support.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    If you like this plugin (and support obviously!), please consider rating the plugin ??

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Post editor user information in email’ is closed to new replies.