|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_form_restriction_entries_count

srfm_form_restriction_entries_count

Description

Filters the entries count used to evaluate a form’s entry-limit restriction.

Parameters

  • $entries_count (int) – The counted entries.
  • $form_id (int) – The form ID.
  • $form_restriction (array) – The restriction settings.

Filter Source

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

Filter Usage

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

Filter Example

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