Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @since 0.1.0
  * @param array $args Misc. arguments.
  */
 public function __construct($args = array())
 {
     if (empty($this->name)) {
         $this->name = __('Image', 'icon-picker');
     }
     parent::__construct($args);
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  * @since 0.1.0
  * @param array $args Optional arguments passed to parent class.
  */
 public function __construct(array $args = array())
 {
     parent::__construct($args);
     if (empty($this->stylesheet_id)) {
         $this->stylesheet_id = $this->id;
     }
     add_action('icon_picker_loader_init', array($this, 'register_assets'));
 }