Archives

Extending the Builder

Merge Tags

<?php /* * Register the new merge tag class on the ninja_forms_loaded hook. */ add_action( 'ninja_forms_loaded', 'my_register_merge_tags' ); function my_register_merge_tags(){ require_once 'class.mergetags.php'; Ninja_Forms()->merge_tags[ 'my_merge_tags' ] = new My_MergeTags(); } view raw _plugin.php hosted with ❤ by GitHub <?php class My_MergeTags …

Continue reading

JavaScript Overview

Ninja Forms provides developers JavaScript hooks, similar to WordPress hooks in PHP, for creating custom functionality. An installable plugin example, including a custom field, a custom field template, and custom JavaScript validation is available on GitHub.

Continue reading