0

When I try to use this function from ninja forms i get an error that the function doesn't exist.

$d = ninja_forms_get_fields_by_form_id('1');

What is the proper way to call this function or other functions from their documentation? is there an action that must be used?

the error that i get is:

Fatal error: Call to undefined function ninja_forms_get_fields_by_form_id() in
4

1 回答 1

0

if anyone has this issue I resolved it by including this into the php file

require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load.php');

and that loads all of wordpresses functions into the php file so that i can use anything and it'll work.

于 2015-08-12T21:46:31.940 回答