Developers
Hooks, REST endpoints, template overrides, post meta and options of Front User Submit for developers.
This section is for developers who extend the plugin or connect it to other code.
- Actions and filters: PHP hooks with their parameters, and the JavaScript hooks.
- REST API and AJAX endpoints
- Template overrides: change the HTML of forms and fields from your theme.
- Post meta and options: where the plugin stores its data.
Some basics:
- Forms are posts of the custom post type
fe_post_form. The fields are stored as JSON in theformBuilderDatameta, the settings as an array infe_form_settings. - PHP classes live in the
BFE\namespace (fields inBFE\Field\, AI inBFE\AI\). - Pro code runs only when
fe_fs()->can_use_premium_code__premium_only()is true. Hooks that only fire in Pro are marked Pro below. - Text domain:
front-editor.
Actions and filters All PHP actions and filters of Front User Submit with parameters and examples, plus the JavaScript fe_hooks events. REST API and AJAX endpoints The REST routes (namespace bfe/v1) and admin-ajax actions used by Front User Submit, with permissions. Template overrides Override the HTML of forms, fields, login and registration forms by copying templates into your theme. Post meta and options Where Front User Submit stores forms, form settings, submitted field values, AI results and global options.