Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this hook to filter the form action JS data.
Usage
add_filter('frm_acf_form_action_js_data', 'acf_form_action_js_data', 10, 2);
Parameters
- $data (array): The JS data.
- $args (array): The args of "frm_pro_post_action_options" hook.
Examples
Add custom data to the form action JS
add_filter('frm_acf_form_action_js_data', 'acf_form_action_js_data', 10, 2);
function acf_form_action_js_data( $data, $args ) {
$data['form_action_id'] = $args['form_action']->ID;
return $data;
}