Last active
August 22, 2018 18:02
-
-
Save klhall1987/ab64e3641dbfa41520deaabb5fe83ba7 to your computer and use it in GitHub Desktop.
Register Merge Tags example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function __construct() | |
{ | |
/* | |
* Required for all Extensions. | |
*/ | |
add_action( 'admin_init', array( $this, 'setup_license') ); | |
// Call our register merge tags method. | |
add_action( 'ninja_forms_loaded', array( $this, 'register_mergetags' ) ); | |
} | |
/** | |
* Register Merge Tags Call Back | |
*/ | |
public function register_mergetags() | |
{ | |
Ninja_Forms()->merge_tags[ 'merge_tag_example' ] = new NF_MergeTagExample_MergeTags(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment