public function __construct() { // add hook to convert shortcode to html. $this->name = str_replace('wpo_shortcode_', '', strtolower(__CLASS__)); $this->key = 'wpo_' . $this->name; parent::__construct(); }
public function __construct() { // add hook to convert shortcode to html. $this->name = str_replace('wpo_shortcode_', '', strtolower(__CLASS__)); $this->key = 'wpo_' . $this->name; $this->excludedMegamenu = true; add_shortcode($this->key, array($this, 'render')); parent::__construct(); }