public __construct ( string $shortcode ) | ||
$shortcode | string | The shortcode tag |
public function __construct($shortcode)
{
$this->shortcode_tag = $shortcode;
add_action('admin_init', array($this, 'init'));
}
/** * Class constructor */ public function __construct() { $this->shortcode['title'] = __('Donation Form Goal', 'give'); $this->shortcode['label'] = __('Donation Form Goal', 'give'); parent::__construct('give_goal'); }