Give_Shortcode_Generator::__construct PHP 메소드

__construct() 공개 메소드

Class constructor
부터: 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

예제 #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