|

srfm_add_background_classes

Description

Filters the CSS classes applied to the form’s background wrapper.

Parameters

  • $classes (array|string) – The background classes.
  • $id (int) – The form ID.
  • $block_attrs (array) – The form block attributes.

Filter Source

PHP
/**
* filter source (Free) inc/generate-form-markup.php 
*/
$classes = apply_filters( 'srfm_add_background_classes', $classes, $id, $block_attrs );

Filter Usage

PHP
add_filter( 'srfm_add_background_classes', 'my_callback', 10, 3 ); 
function my_callback( $classes, $id, $block_attrs ) { 
return $classes; 
}

Filter Example

PHP
add_filter( 'srfm_add_background_classes', 'my_callback', 10, 3 ); 
function my_callback( $classes, $id, $block_attrs ) { 
return $classes; 
}
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