: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace WPForms\Lite\Admin\Education\Builder;
use WPForms\Admin\Education\EducationInterface;
use WPForms_Builder_Panel_Settings;
* Notifications Education feature.
class Notifications implements EducationInterface {
if ( ! $this->allow_load() ) {
* Indicate if current Education feature is allowed to load.
public function allow_load() {
return wpforms_is_admin_page( 'builder' );
private function hooks() {
add_action( 'wpforms_lite_form_settings_notifications_block_content_after', [ $this, 'advanced_section' ], 10, 2 );
* Output Notification Advanced section.
* @param WPForms_Builder_Panel_Settings $settings Builder panel settings.
* @param int $id Notification id.
public function advanced_section( $settings, $id ) {
* Filter the "Advanced" content.
* @param string $content The content.
* @param WPForms_Builder_Panel_Settings $settings Builder panel settings.
* @param int $id Notification id.
$content = apply_filters( 'wpforms_lite_admin_education_builder_notifications_advanced_settings_content', '', $settings, $id );
$content .= wpforms_panel_field(
'file_upload_attachment_enable',
esc_html__( 'Enable File Upload Attachments', 'wpforms-lite' ),
'input_class' => 'notifications_enable_file_upload_attachment_toggle education-modal',
'name' => esc_html__( 'File Upload Attachments', 'wpforms-lite' ),
'utm-content' => 'File Upload Attachments',
'disabled' => 'disabled',
$content .= wpforms_panel_field(
'entry_csv_attachment_enable',
esc_html__( 'Enable Entry CSV Attachment', 'wpforms-lite' ),
'input_class' => 'notifications_enable_entry_csv_attachment_toggle education-modal',
'name' => esc_html__( 'Entry CSV Attachment', 'wpforms-lite' ),
'utm-content' => 'Entry CSV Attachment',
'disabled' => 'disabled',
// Wrap advanced settings to the unfoldable group.
wpforms_panel_fields_group(
'class' => 'wpforms-builder-notifications-advanced',
'group' => 'settings_notifications_advanced',
'title' => esc_html__( 'Advanced', 'wpforms-lite' ),