Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | function __construct( $id = 'template_placeholder', $settings = array() ) { |
||
|
|||
17 | |||
18 | $default_template_settings = array( |
||
19 | 'type' => 'custom', |
||
20 | 'buy_source' => 'https://gravityview.co/pricing/', |
||
21 | 'slug' => '', |
||
22 | 'label' => '', |
||
23 | 'description' => '', |
||
24 | 'logo' => '', |
||
25 | 'price_id' => '', |
||
26 | 'textdomain' => '', |
||
27 | ); |
||
28 | |||
29 | $settings = wp_parse_args( $settings, $default_template_settings ); |
||
30 | |||
31 | $this->id = $id; |
||
32 | $this->settings = $settings; |
||
33 | |||
34 | parent::__construct( $id, $settings, array(), array() ); |
||
35 | } |
||
36 | |||
38 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.