|

srfm_field_config

Description

Filters the extra configuration array for a field (defaults to an empty array). Fired from the shared field base in both Free and Pro.

Parameters

  • $config (array) – Defaults to [].
  • $args (array) – Context array containing attributes.

Filter Source

PHP
/**
* filter source (Free+Pro) inc/fields/base.php
*/
 $config = apply_filters( 'srfm_field_config', [], [ 'attributes' => $attributes ] );

Filter Usage

PHP
add_filter( 'srfm_field_config', 'my_callback', 10, 2 ); 
function my_callback( $config, $args ) { 
return $config; 
}

Filter Example

PHP
add_filter( 'srfm_field_config', 'my_callback', 10, 2 ); 
function my_callback( $config, $args ) { 
return $config; 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top