: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @copyright Copyright (c) 2023, Code Atlantic LLC
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
class PUM_Form extends PUM_Fields {
public $field_prefix = 'pum_form';
public $field_name_format = '{$prefix}[{$field}]';
* Sets the $id of the Cookie and returns the parent __construct()
public function __construct( $id, $args = [] ) {
if ( empty( $args['id'] ) ) {
if ( isset( $args['field_prefix'] ) ) {
$this->field_prefix = $args['field_prefix'];
if ( isset( $args['field_name_format'] ) ) {
$this->field_name_format = $args['field_name_format'];
return parent::__construct( $args );
public function get_id() {