Push Notification Triggers

Triggers are replacement patterns for Push Notification “Title” and “Body” fields

You can find the same table in in-line interface on add/edit Push Notification form

Object/Plugin Action Triggers – description
Post All actions %post_title% – Post title

%post_content% – Post body

%post_author% –  Display name of author (for authorized authors only)

%post_format% – Format of post (link, quote, ect.)

%current_user% – User who see notification dispaly name

*IF “Featured image” is empty gets featured image of post

** IF “Link” is empty gets link to post

Comment All actions %comment_status% – display comment status (“approve”, ect.)

%comment_author% – comment author display name (for authorized authors only)

%comment_content% – text of comment

%comment_parent_content% – if comment is answer for another comment print parent comment text, else print nothing

%comment_parent_author% – if comment is answer for another comment print parent comment display author name, else print nothing

As in posts before (for post associated with comment):

%post_title%

%post_content%

%post_author% (for authorized authors only)

%post_format%

%current_user%

*IF “Featured image” is empty gets featured image of associated post

** IF “Link” is empty gets link to comment

User All actions %acting_user% – user associated with action

%current_user% – user who see notification

Woocommerce Add to cart %product_title% – title of product added to cart

%current_user% – user who see notification

*IF “Featured image” is empty gets featured image of product

** IF “Link” is empty gets link to product

Woocommerce All actions %current_user% – user who see notification
WC Order Status All actions %order_id% – Order number

%total% – Order total

%currency% – Currency text (like USD, GBR)

%customer_first_name% – Order Customer first name (if defined)

%customer_last_name% – Order Customer last name (if defined)

%status% – Order status

%current_user% – User who see notification

* IF “Link” is empty gets link to order view page (woocomerce account page must be defined to view orders)

Buddypress All actions %activity_content% – text of activity

%activity_author% – author of activity

%current_user% – user who see notification

*IF “Featured image” is empty gets avatar image of activity author

** IF “Link” is empty gets link to activity author

Time/schedule All actions %current_user% – user who see notification
Push on DN publish All actions %current_user% – user who see notification
Ultimate Member All actions %display_name% – user name of activity (activity post author, comment author, follow initiator…)

%content% – trimm text of action content (for entities, which have content – like comments or activity posts)

*IF “Featured image” is empty gets avatar image of activity author

** IF “Link” is empty gets link to activity author (or activily link, if possible)

*** With Ultimate Member regular (not activity) posts – works all rules for WordPress → Post

*Please, remember that content text of notification cannot be to long, it would be automaticaly trimmed to 200 symbols

** Most of %triggers% can be used even content was created by anonymous user (like post, comment or order mage by unregistered user). Triggers, that cannot be used for anonymous author have special mark in the list