ACF_Ajax::set
Sets request data for the given key.
Method of the class: ACF_Ajax{}
No Hooks.
Returns
ACF_Ajax.
Usage
$ACF_Ajax = new ACF_Ajax(); $ACF_Ajax->set( $key, $value );
- $key(string)
- The data key.
Default:'' - $value(mixed)
- The data value.
Default:null
Changelog
| Since 5.7.2 | Introduced. |
ACF_Ajax::set() ACF Ajax::set code ACF 6.0.4
function set( $key = '', $value = null ) {
$this->request[ $key ] = $value;
return $this;
}