Skip to content

Instantly share code, notes, and snippets.

@kjohnson
Last active October 28, 2015 20:32
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/05c9e8ab9c3eba465306 to your computer and use it in GitHub Desktop.
Save kjohnson/05c9e8ab9c3eba465306 to your computer and use it in GitHub Desktop.
<?php
// Returns an Form Model for Form ID 1
Ninja_Forms()->form( 1 )->get();
// Returns an array of Form Models for All Forms
Ninja_Forms()->form()->get_forms();
// Returns an array of Field Models for Form ID 1
Ninja_Forms()->form( 1 )->get_fields();
// Returns an array of Action Models for Form ID 1
Ninja_Forms()->form( 1 )->get_actions();
// Returns an array of Object Models for Form ID 1
Ninja_Forms()->form( 1 )->get_objects();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment