Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

Use GFAPI in custom column?

Sorry for the dumb question, but: when I try to use the Gravity Forms API (using $entry_count = GFAPI::count_entries($gform, $search_criteria);) inside a custom Admin Column, I keep getting Fatal error: Uncaught Error: Class ‘zwscols\Column\Free\GFAPI’ not found.

Is the code for a custom admin column executed before Gravity Forms and its API becomes available – and if so, is there a way around this? Or did I just make a dumb beginners error re: object-oriented PHP handling of API calls?


1 year, 7 months ago
Tobias Schutter

Try it with a backslash \. $entry_count = \GFAPI::count_entries($gform, $search_criteria); or put a use statement on top of your php file, like so use GFAPI;

1 year, 7 months ago

You must be logged in to reply to this topic.