'_customize-dropdown-categories-' . $this->id, 'echo' => 0, 'show_option_none' => '— ' . esc_html__( 'Select', 'boxy-studio' ) . ' —', 'option_none_value' => '0', 'hierarchical' => 1, 'selected' => $this->value(), ) ); // Hackily add in the data link parameter. $dropdown = str_replace( 'get_link(), $dropdown ); printf( '', $this->label, esc_html( $this->description ), $dropdown ); } } /** * Add Menus control */ class WPC_Customize_Menus_Control extends WP_Customize_Control { public $type = 'menus'; private $menus = false; public function __construct( $manager, $id, $args = array(), $options = array() ) { $this->menus = wp_get_nav_menus( $options ); parent::__construct( $manager, $id, $args ); } // Render the content public function render_content() { if( empty( $this->menus ) ) return; ?> users = get_users( $options ); parent::__construct( $manager, $id, $args ); } // Render the content public function render_content() { if( empty( $this->users) ) return; ?> '-1' ) ); $this->posts = get_posts( $postargs ); parent::__construct( $manager, $id, $args ); } // Render the content public function render_content() { if( empty( $this->posts) ) return; ?> true ) ); $this->post_types = get_post_types( $postargs, 'object' ); parent::__construct( $manager, $id, $args ); } // Render the content public function render_content() { if( empty( $this->post_types ) ) return; ?> tags = get_tags( $options ); parent::__construct( $manager, $id, $args ); } // Render the content public function render_content() { if( empty( $this->tags ) ) return; ?>
label ); ?>