choices as $value => $args ) $this->choices[ $value ]['url'] = esc_url( sprintf( $args['url'], get_template_directory_uri(), get_stylesheet_directory_uri() ) ); $this->json['choices'] = $this->choices; $this->json['link'] = $this->get_link(); $this->json['value'] = $this->value(); $this->json['id'] = $this->id; } public function render_content(){ if( !$this->choices ) return; if( $this->label ){ ?> label ); ?> description ) { ?> description ); ?>
choices as $key => $val ) { $img = get_template_directory_uri() . $val[ 'url' ]; ?> link(); ?> value() ); ?> />