ACF::get_instance
Returns an instance or null if doesn't exist.
Method of the class: ACF{}
No Hooks.
Returns
object.
Usage
$ACF = new ACF(); $ACF->get_instance( $class );
- $class(string) (required)
- The instance class name.
Changelog
| Since 5.6.9 | Introduced. |
ACF::get_instance() ACF::get instance code ACF 6.8.8
public function get_instance( $class ) {
$name = strtolower( $class );
return isset( $this->instances[ $name ] ) ? $this->instances[ $name ] : null;
}