-
-
Save kjohnson/b9fcebebbb744e494e6f to your computer and use it in GitHub Desktop.
Example API calls for Ninja Forms 3.0
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 | |
// 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