Repeatable_Field::__construct()
Description #
The class constructor.
Set requests and nonce key.
Source #
File: ajax/repeatable-field.php
protected function __construct() { $this->req( 'form_name', ap_sanitize_unslash( 'form_name', 'r' ) ); $this->req( 'field_name', ap_sanitize_unslash( 'field_name', 'r' ) ); $this->req( 'current_groups', ap_sanitize_unslash( 'current_groups', 'r' ) ); $this->nonce_key = 'repeatable-field'; // Call parent. parent::__construct(); }
Expand full source code Collapse full source code View on GitHub: ajax/repeatable-field.php:37
Add your comment