|

srfm_is_valid_smart_tag

Description

Filters whether a given tag is considered a valid smart tag.

Parameters

  • $is_valid (bool) – Whether the tag is valid.
  • $tag (string) – The tag.
  • $form_data (array) – The form data.

Filter Source

PHP
/**
* filter source (Free) inc/smart-tags.php
*/
 $is_valid = apply_filters( 'srfm_is_valid_smart_tag', $is_valid, $tag, $form_data );

Filter Usage

PHP
add_filter( 'srfm_is_valid_smart_tag', 'my_callback', 10, 3 ); 
function my_callback( $is_valid, $tag, $form_data ) 
{ 
return $is_valid;
 }

Filter Example

PHP
add_filter( 'srfm_is_valid_smart_tag', 'my_callback', 10, 3 ); 
function my_callback( $is_valid, $tag, $form_data ) { 
return $is_valid; 
}
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