src/WPametu/UI/MetaBox.php
public function render( \WP_Post $post ){
        $this->nonce_field();
        $this->desc();
        echo '<table class="table form-table wpametu-meta-table">';
        foreach( $this->loop_fields() as $field ){
            if( !is_wp_error($field) ){
                /** @var \WPametu\UI\Field\Base $field */
                $field->render($post);
            }else{
                /** @var \WP_Error $field */
                printf('<div class="error"><p>%s</p></div>', $field->get_error_message());
            }
        }
        echo '</table>';
    }
public function render( \WP_Post $post ){
        $this->nonce_field();
        $this->desc();
        echo '<table class="table form-table wpametu-meta-table">';
        foreach( $this->loop_fields() as $field ){
            if( !is_wp_error($field) ){
                /** @var \WPametu\UI\Field\Base $field */
                $field->render($post);
            }else{
                /** @var \WP_Error $field */
                printf('<div class="error"><p>%s</p></div>', $field->get_error_message());
            }
        }
        echo '</table>';
    }
public function render ( \ WP_Post $ post ) { $ this -> nonce_field ( ) ; $ this -> desc ( ) ; echo '<table class="table form-table wpametu-meta-table">' ; foreach ( $ this -> loop_fields ( ) as $ field ) { if ( ! is_wp_error ( $ field ) ) { /** @var \WPametu\UI\Field\Base $field */ $ field -> render ( $ post ) ; } else { /** @var \WP_Error $field */ printf ( '<div class="error"><p>%s</p></div>' , $ field -> get_error_message ( ) ) ; } } echo '</table>' ; }
Render meta box content

@param \WP_Post $post
Render meta box content