add_component( 'acf', new Fields\Acf() ); $this->add_component( 'acf', new Fields\Acf() ); } if ( function_exists( 'pods' ) ) { $this->add_component( 'pods', new Fields\Pods() ); } if ( function_exists( 'wpcf_admin_fields_get_groups' ) ) { $this->add_component( 'toolset', new Fields\Toolset() ); } // Basic post meta // $this->add_component( 'meta', new Fields\Meta() ); } /** * Get Field Types * * Fetches available custom fields types * * @since 2.0.0 */ public function get_field_types() { $field_types = []; foreach( $this->get_components() as $name => $component ) { $field_types[ $component->get_name() ] = $component->get_title(); } return $field_types; } }