/** * Get instance * * @since 0.1.0 * @return Icon_Picker_Loader */ public static function instance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * Initialize loader * * @since 0.1.0 * @access protected * @return void */ protected function init_loader() { require_once "{$this->dir}/includes/loader.php"; $this->loader = Icon_Picker_Loader::instance(); /** * Fires when Icon Picker's Registry is ready and the default types are registered. * * @since 0.1.0 * @param Icon_Picker $this Icon_Picker instance. */ do_action('icon_picker_loader_ready', $this); }