Пример #1
0
 /**
  * Class constructor
  *
  * @throws \SilverWp\ShortCode\Exception
  */
 public function __construct()
 {
     parent::__construct();
     if (SingletonAbstract::isImplemented(get_called_class(), 'SilverWp\\ShortCode\\Vp\\Menu\\Element\\AttributesInterface')) {
         $this->createAttributes();
     }
 }
Пример #2
0
 /**
  *
  * Class constructor
  *
  * @throws \SilverWp\ShortCode\Exception
  */
 public function __construct()
 {
     parent::__construct();
     add_action('vc_before_init', array($this, 'init'));
 }