public function __construct($manager, $id, $args = array()) { //let the parent say what he needs to. We need to hear that sometimes. parent::__construct($manager, $id, $args); add_action('customize_controls_print_footer_scripts', array($this, 'hu_render_widget_zone_template'), 1); }
/** * Constructor * * @uses \WP_Customize_Section::__construct() * * @param \WP_Customize_Manager $manager * @param string $id * @param array $args */ public function __construct($manager, $id, array $args) { $this->type = "{$args['panel']}_{$this->type}"; parent::__construct($manager, $id, wp_parse_args($args, static::get_args())); }