|

srfm_is_form_restricted

Description

Filters whether a form is currently restricted from accepting submissions (e.g. entry limit reached, schedule closed).

Parameters

  • $is_restricted (bool) – Whether the form is restricted.
  • $form_id (int) – The form ID.
  • $form_restriction (array) – The form restriction settings.

Filter Source

PHP
/**
* filter source (Free) inc/form-restriction.php
*/
 $is_restricted = apply_filters( 'srfm_is_form_restricted', $is_restricted, $form_id, $form_restriction, false, false );

Filter Usage

PHP
add_filter( 'srfm_is_form_restricted', 'my_callback', 10, 3 ); 
function my_callback( $is_restricted, $form_id, $form_restriction ) { 
return $is_restricted; 
}

Filter Example

PHP
add_filter( 'srfm_is_form_restricted', 'my_callback', 10, 3 ); 
function my_callback( $is_restricted, $form_id, $form_restriction ) { 
return $is_restricted; 
}
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