'_customize-dropdown-categories-' . $this->id, 'echo' => 0, 'show_option_none' => esc_attr__( '— Show All Posts —', 'hitmag' ), 'option_none_value' => '0', 'selected' => $this->value(), ) ); // Hackily add in the data link parameter. $dropdown = str_replace( 'get_link(), $dropdown ); printf( '', $this->label, $dropdown ); } } // Register our custom control with Kirki add_filter( 'kirki/control_types', 'hitmag_register_kirki_category_control' ); function hitmag_register_kirki_category_control( $controls ) { $controls['hitmag-category-dropdown'] = 'HitMag_Customize_Category_Control'; return $controls; }