Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example code for caldera_forms_render_form_attributes filter. See:
* Indicate to screen readers and other assistive devices that a Caldera Form is being used as a search form.
add_filter( 'caldera_forms_render_form_attributes', function( $form_attributes, $form ){
$form_attributes[ 'role' ] = 'search';
return $form_attributes;
}, 15, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.