|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_form_restriction_message

srfm_form_restriction_message

Description

Filters the message shown when a form is restricted.

Parameters

  • $message (string) – The restriction message.
  • $form_id (int) – The form ID.
  • $form_restriction (array) – The restriction settings.

Filter Source

PHP
/**
* filter source (Free) inc/form-submit.php 
*/
$message = apply_filters( 'srfm_form_restriction_message', $message, $form_id, $form_restriction );

Filter Usage

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

Filter Example

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