'post', // Current screen loaded (post, user, taxonomy, etc) 'post_id' => 0, // ID of current post being edited 'nonce' => '', // nonce used for $_POST validation (defaults to screen) 'validation' => 1, // enables form validation 'changed' => 0, // used by revisions and unload to detect change )); // crete nonce $data['nonce'] = wp_create_nonce($data['screen']); // update $this->data = $data; // return return $data; } /* * get_data * * Returns data. * * @type function * @date 4/03/2016 * @since 5.3.2 * * @param string $name The data anme. * @return mixed The data. */ function get_data( $name = false ) { return isset($this->data[ $name ]) ? $this->data[ $name ] : null; } /** * render_data * * Renders the