|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_apply_form_theme_styling

srfm_apply_form_theme_styling

Description

Filters the resolved form styling array for a given theme slug. Use it to override form theme styles programmatically.

Parameters

  • $form_styling (array) – The styling configuration.
  • $theme_slug (string) – The active theme slug.

Filter Source

PHP
/**
* filter source (Free) inc/form-styling.php 
*/
 $form_styling = apply_filters( 'srfm_apply_form_theme_styling', $form_styling, $theme_slug );

Filter Usage

PHP
add_filter( 'srfm_apply_form_theme_styling', 'my_callback', 10, 2 ); 
function my_callback( $form_styling, $theme_slug ) { 
return $form_styling; 
}

Filter Example

PHP
add_filter( 'srfm_apply_form_theme_styling', 'my_callback', 10, 2 ); 
function my_callback( $form_styling, $theme_slug ) { 
return $form_styling; 
}
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