You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/plugins copy/popup-maker/includes/class-pum-form.php

50 lines
866 B

<?php
/**
* Forms
*
* @package PUM
* @copyright Copyright (c) 2023, Code Atlantic LLC
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class PUM_Form extends PUM_Fields {
public $id;
public $field_prefix = 'pum_form';
public $field_name_format = '{$prefix}[{$field}]';
/**
* Sets the $id of the Cookie and returns the parent __construct()
*
* @param array $id
* @param array $args
*/
public function __construct( $id, $args = [] ) {
$this->id = $id;
if ( empty( $args['id'] ) ) {
$args['id'] = $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() {
return $this->id;
}
}