ninja_forms_merge_tags_wp

|-------------------------------------------------------------------------- | Admin Email Address |--------------------------------------------------------------------------.

Description

apply_filters( 'ninja_forms_merge_tags_wp', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array('id' => array( 'id' => 'id', 'tag' => '{wp:post_id}', 'label' => __( 'Post ID', 'ninja_forms' ), 'callback' => 'post_id' ),'title' => array( 'id' => 'title', 'tag' => '{wp:post_title}', 'label' => __( 'Post Title', 'ninja_forms' ), 'callback' => 'post_title' ),'url' => array( 'id' => 'url', 'tag' => '{wp:post_url}', 'label' => __( 'Post URL', 'ninja_forms' ), 'callback' => 'post_url' ),'author' => array( 'id' => 'author', 'tag' => '{wp:post_author}', 'label' => __( 'Post Author', 'ninja_forms' ), 'callback' => 'post_author' ),'author_email' => array( 'id' => 'author_email', 'tag' => '{wp:post_author_email}', 'label' => __( 'Post Author Email', 'ninja_forms' ), 'callback' => 'post_author_email' ),'post_meta' => array( 'id' => 'post_meta', 'tag' => '{post_meta:YOUR_META_KEY}', 'label' => __( 'Post Meta', 'ninja_forms' ), 'callback' => null ),'user_id' => array( 'id' => 'user_id', 'tag' => '{wp:user_id}', 'label' => __( 'User ID', 'ninja_forms' ), 'callback' => 'user_id' ),'first_name' => array( 'id' => 'first_name', 'tag' => '{wp:user_first_name}', 'label' => __( 'User First Name', 'ninja_forms' ), 'callback' => 'user_first_name' ),'last_name' => array( 'id' => 'last_name', 'tag' => '{wp:user_last_name}', 'label' => __( 'User Last Name', 'ninja_forms' ), 'callback' => 'user_last_name' ),'display_name' => array( 'id' => 'display_name', 'tag' => '{wp:user_display_name}', 'label' => __( 'User Display Name', 'ninja_forms' ), 'callback' => 'user_display_name' ),'user_email' => array( 'id' => 'user_email', 'tag' => '{wp:user_email}', 'label' => __( 'User Email', 'ninja_forms' ), 'callback' => 'user_email' ),'user_url' => array( 'id' => 'user_url', 'tag' => '{wp:user_url}', 'label' => __( 'User URL', 'ninja_forms' ), 'callback' => 'user_url' ),'site_title' => array( 'id' => 'site_title', 'tag' => '{wp:site_title}', 'label' => __( 'Site Title', 'ninja_forms' ), 'callback' => 'site_title' ),'site_url' => array( 'id' => 'site_url', 'tag' => '{wp:site_url}', 'label' => __( 'Site URL', 'ninja_forms' ), 'callback' => 'site_url' ),'admin_email' => array( 'id' => 'admin_email', 'tag' => '{wp:admin_email}', 'label' => __( 'Admin Email', 'ninja_forms' ), 'callback' => 'admin_email' ),)
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'ninja_forms_merge_tags_wp', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ninja_forms_merge_tags_wp callback 
  2. function filter_ninja_forms_merge_tags_wp( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ninja_forms_merge_tags_wp', 'filter_ninja_forms_merge_tags_wp', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ninja_forms_merge_tags_wp', 'filter_ninja_forms_merge_tags_wp', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/Config/MergeTagsWP.php  
  1. return apply_filters( 'ninja_forms_merge_tags_wp', array(