Plugin Init Hooks
Action Hooks 5 HooksThese hooks fire during Fluent Forms plugin initialization and loading.
fluentform/global_menu
Description
This action runs before rendering the admin menu.
Usage
add_action('fluentform/global_menu', function() {
// Do your stuff here
}, 10, 0);2
3
Reference
do_action('fluentform/global_menu');
This hook is located in app/Views/admin/**/*.php.
fluentform/loaded
Description
This action fires after fluentform plugin is loaded.
Parameters
$app(object) App Instance
Usage
add_action('fluentform/loaded', function($app) {
// Do your stuff here
}, 10, 1);2
3
Reference
do_action('fluentform/loaded', $app);
This hook is located in fluentform/boot/app.php
fluentform/loading_editor_assets
Description
This action runs during asset loading for the editor. You can hook into this action and load your custom scripts or do other tasks.
Parameters
$form(object) Form
Usage
add_action('fluentform/loading_editor_assets', function($form) {
// Do your stuff here
}, 10, 1);2
3
Reference
do_action('fluentform/loading_editor_assets', $form);
This hook is located in fluentform/app/Modules/Registerer/Menu.php.
fluentform/pre_load_scripts
Description
This action fires after fluentform plugin is loaded.
Parameters
$post(object) Global post
Usage
add_action('fluentform/pre_load_scripts', function($post) {
// Do your stuff here
}, 10, 1);2
3
Reference
$this->app->doAction('fluentform/pre_load_scripts', $post);
This hook is located in fluentform/app/Modules/Component/Component.php
fluentform/scripts_registered
Description
This action fires after fluentform scripts are registered.
Usage
add_action('fluentform/scripts_registered', function() {
// Do your stuff here
}, 10, 0);2
3
Reference
do_action('fluentform/scripts_registered');
This hook is located in fluentform/app/Modules/Component/Component.php