Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook allows you to customize the conversational form start page.
Usage
add_filter('frm_chat_start_page_content', 'function_name', 10, 2);
Parameters
- $start_page_content (string)
- $args (array)
Examples
Add extra custom HTML to start page
Use this code example to add custom HTML to the conversational form start page below the start button.
add_filter('frm_chat_start_page_content', 'frm_chat_add_html', 10, 2);
function frm_chat_add_html( $start_page_content, $args ) {
$target_form_id = 310; // change 310 to your form ID.
if ( $target_form_id === (int) $args['form']->id ) {
$start_page_content .= '<br>';
$start_page_content .= 'Additional start page content';
}
return $start_page_content;
}