Action: bricks/filter_element/before_set_data_source_from_custom_field
Runs before setting the data source for a filter element that uses a custom field. This hook allows you to modify the filter element instance before the custom field data is processed.
Parameters
Section titled “Parameters”$filter_element(Bricks\Filter_Element): The filter element instance.
Example usage
Section titled “Example usage”add_action( 'bricks/filter_element/before_set_data_source_from_custom_field', function( $filter_element ) { // You can access $filter_element properties here, for example: // $settings = $filter_element->settings;
// Example: modify settings before processing // $filter_element->settings['customFieldKey'] = 'modified_key';} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.