: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<?php if ( ! defined( 'ABSPATH' ) ) exit;
return apply_filters( 'ninja_forms_from_restriction_settings', array(
'unique-field-set' => array(
'name' => 'unique-field-set',
'label' => esc_html__( 'Unique Field', 'ninja-forms' ),
'info' => 'https://ninjaforms.com/docs/unique-field-validation/',
'name' => 'unique_field',
'type' => 'field-select',
'field_value_format' => 'key',
'unique_field_error' => array(
'name' => 'unique_field_error',
'label' => esc_html__( 'Unique Field Error Message', 'ninja-forms' ),
'value' => esc_textarea( __( 'A form with this value has already been submitted.', 'ninja-forms' ) ),
'logged-in-set' => array(
'name' => 'logged-in-set',
'label' => esc_html__( 'Logged In', 'ninja-forms' ),
* REQUIRE USER TO BE LOGGED IN TO VIEW FORM?
'label' => esc_html__( 'Require user to be logged in to view form?', 'ninja-forms' ),
'help' => esc_html__( 'Does apply to form preview.', 'ninja-forms' )
'not_logged_in_msg' => array(
'name' => 'not_logged_in_msg',
'type' => 'rte', //TODO: Add WYSIWYG
'label' => esc_html__( 'Not Logged-In Message', 'ninja-forms' ),
'limit-submissions-set' => array(
'name' => 'limit-submissions-set',
'label' => esc_html__( 'Limit Submissions', 'ninja-forms' ),
'sub_limit_number' => array(
'name' => 'sub_limit_number',
'label' => esc_html__( 'Submission Limit', 'ninja-forms' ),
'help' => esc_html__( 'Does NOT apply to form preview.', 'ninja-forms' )
//TODO: Add following text below the element.
//Select the number of submissions that this form will accept. Leave empty for no limit.
'sub_limit_msg' => array(
'name' => 'sub_limit_msg',
'type' => 'rte',//TODO: Add WYSIWYG
'label' => esc_html__( 'Limit Reached Message', 'ninja-forms' ),
'value' => esc_textarea( __( 'The form has reached its submission limit.', 'ninja-forms' ) )
//TODO: Add following text below the WYSIWYG.
//Please enter a message that you want displayed when this form has reached its submission limit and will not
//accept new submissions.