ACF_Legacy_Locations::__call
Magic __call method for backwards compatibility.
Method of the class: ACF_Legacy_Locations{}
No Hooks.
Returns
Mixed.
Usage
$ACF_Legacy_Locations = new ACF_Legacy_Locations(); $ACF_Legacy_Locations->__call( $name, $arguments );
- $name(string) (required)
- The method name.
- $arguments(array) (required)
- The array of arguments.
Changelog
| Since 5.9.0 | Introduced. |
ACF_Legacy_Locations::__call() ACF Legacy Locations:: call code ACF 6.0.4
public function __call( $name, $arguments ) {
// _doing_it_wrong( __FUNCTION__, __( 'The ACF_Locations class should not be accessed directly.', 'acf' ), '5.9.0' );
switch ( $name ) {
case 'register_location':
return call_user_func_array( 'acf_register_location_type', $arguments );
case 'get_location':
return call_user_func_array( 'acf_get_location_type', $arguments );
case 'get_locations':
return call_user_func_array( 'acf_get_location_rule_types', $arguments );
}
}