options = $options; parent::__construct( $manager, $id, $args ); } /** * Render the control's content. * * Allows the content to be overriden without having to rewrite the wrapper. * * @since 11/14/2012 * @return void */ public function render_content() { // call wp_dropdown_cats to get data and add to select field add_action( 'wp_dropdown_cats', array( $this, 'wp_dropdown_cats' ) ); // Set defaults $this->defaults = array( 'show_option_none' => esc_html__( 'None','asycom' ), 'orderby' => 'name', 'hide_empty' => 0, 'id' => $this->id, 'selected' => $this->value() ); // parse defaults and user data $cats = wp_parse_args( $this->options, $this->defaults ); ?> get_link(), $output ); return $output; } } ?>