Awesome Support Developer Documentation

wpas__user_email_notifications_template_tags


Signature

apply_filters( 'wpas__user_email_notifications_template_tags', $tags );
 

Typical Usage

Add user email template tags used both for value attribution and in the contextual help in the plugin settings page.

Parameters

  • $tags: Array

Returns

  • Array

Located In

  • File: includes\class-user-email-notifications.php
  • Function: WPAS_User_Email_Notification::get_tags

First Available

Version 5.1.1

Usage code example

add_filter( 'wpas__user_email_notifications_template_tags', function( $tags ) {
    $my_tags = array(
        array(
            'tag'  => '{my_tag_1}',
            'desc' => 'My tag 1'
        ),
        array(
            'tag'  => '{my_tag_2}',
            'desc' => 'My tag 2'
        ),
    );
    return array_merge( $tags, $my_tags );
});


More Topics In Filter Hooks

Share: