src/WPametu/UI/Field/Base.php
public function render( \WP_Post $post = null ){
        $required = $this->get_required($post);
        $label = esc_html($this->label);
        $desc_str = $this->description;
        $desc = !empty($desc_str) ? sprintf('<p class="description">%s</p>', $this->description) : '';
        $input = $this->get_field($post);
        echo $this->render_row($label, $required, $input, $desc, $post);
    }
public function render( \WP_Post $post = null ){
        $required = $this->get_required($post);
        $label = esc_html($this->label);
        $desc_str = $this->description;
        $desc = !empty($desc_str) ? sprintf('<p class="description">%s</p>', $this->description) : '';
        $input = $this->get_field($post);
        echo $this->render_row($label, $required, $input, $desc, $post);
    }
public function render ( \ WP_Post $ post = null ) { $ required = $ this -> get_required ( $ post ) ; $ label = esc_html ( $ this -> label ) ; $ desc_str = $ this -> description ; $ desc = ! empty ( $ desc_str ) ? sprintf ( '<p class="description">%s</p>' , $ this -> description ) : '' ; $ input = $ this -> get_field ( $ post ) ; echo $ this -> render_row ( $ label , $ required , $ input , $ desc , $ post ) ; }
Render input field

@param \WP_Post $post
Render input field