• Resolved Arun G

    (@arunlapog)


    I was trying to create forms on
    1. Theme switch → if Forminator is active, run create_forms()
    2. Forminator activation → if Theme is active, run create_forms()
    both triggers works, but some warnings showing.
    Warning: Undefined array key “fields”….
    Warning: foreach() argument must be of type array|object, null given in….

    It would be helpfull if you could suggest the correct hook / trigger to do this function in action withouts warnings.

    • This topic was modified 8 months, 4 weeks ago by Arun G.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wranings Showing when using add_form() method’ is closed to new replies.