ninja_forms_get_subs

Type: Function
Accepted Parameters:  Array of arguments. See below.
Returns: An array of submissions on success, an empty array if no results found.

This function is used to get submission data from the database.

It accepts the following arguments:

  • form_id => ID of the form you want submissions from
  • user_id => ID of the user you want submissions from
  • field_id => User value that the field ID must be equal to
  • begin_date => Earliest date for submissions
  • end_date => last date for submissions
  • limit => only return X submissions

Example: