Skip to content

Instantly share code, notes, and snippets.

@kjohnson
Last active August 27, 2015 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjohnson/b9fcebebbb744e494e6f to your computer and use it in GitHub Desktop.
Save kjohnson/b9fcebebbb744e494e6f to your computer and use it in GitHub Desktop.
Example API calls for Ninja Forms 3.0
<?php
// Forms
Ninja_Forms()->form( $form_id )->get();
// Form Fields
Ninja_Forms()->form( $form_id )->get_fields();
Ninja_Forms()->form( $form_id )->get_field( $field_id );
Ninja_Forms()->form( $form_id )->get_field( $field_key );
// Form Actions
Ninja_Forms()->form( $form_id )->get_actions();
Ninja_Forms()->form( $form_id )->get_action( $action_id );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment