Give_Shortcode_Generator::__construct PHP Method

__construct() public method

Class constructor
Since: 1.0
public __construct ( string $shortcode )
$shortcode string The shortcode tag
    public function __construct($shortcode)
    {
        $this->shortcode_tag = $shortcode;
        add_action('admin_init', array($this, 'init'));
    }

Usage Example

Example #1
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     $this->shortcode['title'] = __('Donation Form Goal', 'give');
     $this->shortcode['label'] = __('Donation Form Goal', 'give');
     parent::__construct('give_goal');
 }
All Usage Examples Of Give_Shortcode_Generator::__construct