|

srfm_get_form_post_content

Description

Filters the post content (block markup) of a form before it is parsed for rendering. Fired in Free (standard rendering) and Pro (page-break and conversational forms).

Parameters

  • $content (string) – The form post content.
  • $id (int) – The form ID.

Filter Source

PHP
/**
* filter source (Free+Pro) Free: inc/generate-form-markup.php, Pro: inc/extensions/page-break.php 
*/
$content = apply_filters( 'srfm_get_form_post_content', $content, $id );

Filter Usage

PHP
add_filter( 'srfm_get_form_post_content', 'my_callback', 10, 2 ); 
function my_callback( $content, $id ) { 
return $content; 
}

Filter Example

PHP
add_filter( 'srfm_get_form_post_content', 'my_callback', 10, 2 ); 
function my_callback( $content, $id ) { 
return $content;
}
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