ACF_Rest_Request::__get
Magic getter for accessing read-only properties. Should we ever need to enforce a getter method, we can do so here.
Method of the class: ACF_Rest_Request{}
No Hooks.
Returns
String|null.
Usage
$ACF_Rest_Request = new ACF_Rest_Request(); $ACF_Rest_Request->__get( $name );
- $name(string) (required)
- The desired property name.
ACF_Rest_Request::__get() ACF Rest Request:: get code ACF 6.0.4
public function __get( $name ) {
if ( in_array( $name, $this->readonly_props ) ) {
return $this->$name;
}
return null;
}