User Frontend Submit PRO – Filter List

Filters

acf_form_types

Since version 2.5: register new custom form type

Param

$form_types (required): all the form types are defined via this variable, your custom form type will have slug and text

Example Code

Register new custom form type for creating a contact in AgileCRM.

add_filter('acf_form_types', 'add_new_form_type');
function add_new_form_type($form_types){
    $form_types['agile_crm_connector'] = 'AgileCRM Connector';
 return $form_types;
}

acf_currency_options

Since version 2.5: register new currency

Param

$currency_options (required): all the currency via this variable, your custom form type will have currency code (ISO) and Currency name

Example Code

Add new currency code of Vietnam currency

add_filter('acf_currency_options', 'add_new_currency');
function add_new_currency($currency_options){
    $currency_options['VND'] = 'VietnamDong';
 return $currency_options;
}

acf_frontend_post_html_before_fields_form

Since version 2.5: add the custom field to your demand before form

Param

$html_before_fields (required): all the custom field before form’s field is rendered.

Example Code

Register new custom form type for creating a contact in AgileCRM.

add_filter('acf_frontend_post_html_before_fields_form', 'add_new_fields');
function add_new_fields($html_before_fields){
 $html_before_fields .= '<input name="custom_field_form" type="hidden" value="your_value_here" />';   
 return $html_before_fields;
}

Leave a Comment

Your email address will not be published.

You may use these HTML tags and attributes: <a href=""> <abbr> <acronym> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Send a Message