|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_additional_restriction_message

srfm_additional_restriction_message

Description

Filters the error message shown when a custom restriction (srfm_additional_restriction_check) blocks a submission.

Parameters

  • $message (string) – The error message.
  • $form_id (int) – The form ID.
  • $form_data (array) – The submitted form data.

Filter Source

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

Filter Usage

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

Filter Example

PHP
add_filter( 'srfm_additional_restriction_message', 'my_callback', 10, 3 ); 
function my_callback( $message, $form_id, $form_data ) { 
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