acf_fields::register_field_type_info
register_field_type_info
This function will store a basic array of info about the field type to later be overriden by the above register_field_type function
Method of the class: acf_fields{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_fields = new acf_fields(); $acf_fields->register_field_type_info( $info );
- $info(required)
- .
Changelog
| Since 5.6.0 | Introduced. |
acf_fields::register_field_type_info() acf fields::register field type info code ACF 6.0.4
function register_field_type_info( $info ) {
// convert to object
$instance = (object) $info;
$this->types[ $instance->name ] = $instance;
}