ninja_forms_merge_tags_deprecated

|-------------------------------------------------------------------------- | System IP Address |--------------------------------------------------------------------------.

Description

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

Parameters (1)

0. $array — Optional. (callback) => array('id' => array( 'id' => 'id', 'tag' => '{post:id}', 'label' => __( 'Post ID', 'ninja_forms' ), 'callback' => 'post_id' ),'title' => array( 'id' => 'title', 'tag' => '{post:title}', 'label' => __( 'Post Title', 'ninja_forms' ), 'callback' => 'post_title' ),'url' => array( 'id' => 'url', 'tag' => '{post:url}', 'label' => __( 'Post URL', 'ninja_forms' ), 'callback' => 'post_url' ),'author' => array( 'id' => 'author', 'tag' => '{post:author}', 'label' => __( 'Post Author', 'ninja_forms' ), 'callback' => 'post_author' ),'author_email' => array( 'id' => 'author_email', 'tag' => '{post:author_email}', 'label' => __( 'Post Author Email', 'ninja_forms' ), 'callback' => 'post_author_email' ),'user_id' => array( 'id' => 'user_id', 'tag' => '{user:id}', 'label' => __( 'User ID', 'ninja_forms' ), 'callback' => 'user_id' ),'first_name' => array( 'id' => 'first_name', 'tag' => '{user:first_name}', 'label' => __( 'User First Name', 'ninja_forms' ), 'callback' => 'user_first_name' ),'last_name' => array( 'id' => 'last_name', 'tag' => '{user:last_name}', 'label' => __( 'User Last Name', 'ninja_forms' ), 'callback' => 'user_last_name' ),'display_name' => array( 'id' => 'display_name', 'tag' => '{user:display_name}', 'label' => __( 'User Display Name', 'ninja_forms' ), 'callback' => 'user_display_name' ),'user_email' => array( 'id' => 'user_email', 'tag' => '{user:email}', 'label' => __( 'User Email', 'ninja_forms' ), 'callback' => 'user_email' ),'site_title' => array( 'id' => 'site_title', 'tag' => '{site:title}', 'label' => __( 'Site Title', 'ninja_forms' ), 'callback' => 'site_title' ),'site_url' => array( 'id' => 'site_url', 'tag' => '{site:url}', 'label' => __( 'Site URL', 'ninja_forms' ), 'callback' => 'site_url' ),'admin_email' => array( 'id' => 'admin_email', 'tag' => '{system:admin_email}', 'label' => __( 'Admin Email', 'ninja_forms' ), 'callback' => 'admin_email' ),'date' => array( 'id' => 'date', 'tag' => '{system:date}', 'label' => __( 'Date', 'ninja_forms' ), 'callback' => 'system_date' ),'ip' => array( 'id' => 'ip', 'tag' => '{system:ip}', 'label' => __( 'IP Address', 'ninja_forms' ), 'callback' => 'system_ip' ),'query_string' => array( 'tag' => '{query_string_key}', 'label' => __( 'Query String', 'ninja_forms' ), 'callback' => null, ),)
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'ninja_forms_merge_tags_deprecated', $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_deprecated callback 
  2. function filter_ninja_forms_merge_tags_deprecated( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ninja_forms_merge_tags_deprecated', 'filter_ninja_forms_merge_tags_deprecated', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ninja_forms_merge_tags_deprecated', 'filter_ninja_forms_merge_tags_deprecated', 10, 1 ); 

Defined (1)

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

/includes/Config/MergeTagsDeprecated.php  
  1. return apply_filters( 'ninja_forms_merge_tags_deprecated', array(