'method_name', 'cmb2_admin_init' => 'autoload', ]; } protected $configs = []; /** * Autoload CMB2 */ public function autoload() { $this->configs = (array) apply_filters('italystrap_cmb2_configurations_array', $this->configs); foreach ($this->configs as $config) { $this->cmb = new CMB2_Loader($config); $this->cmb->load(); } } }