public function render_meta_box( $post, array $args ) {
		if ( ! isset( $args['args'] ) ) {
			return;
		}

		// Do a last check before all properties is rendered.
		$args['args'] = array_filter( $args['args'], 'papi_is_property' );

		// Inherit options from the box.
		foreach ( $args['args'] as $index => $property ) {
			if ( $property->layout === 'horizontal' ) {
				$args['args'][$index]->layout = $this->box->layout;
			}
		}

		// Render the properties.
		papi_render_properties( papi_sort_order( array_reverse( $args['args'] ) ) );
	}
public function render_meta_box( $post, array $args ) {
		if ( ! isset( $args['args'] ) ) {
			return;
		}

		// Do a last check before all properties is rendered.
		$args['args'] = array_filter( $args['args'], 'papi_is_property' );

		// Inherit options from the box.
		foreach ( $args['args'] as $index => $property ) {
			if ( $property->layout === 'horizontal' ) {
				$args['args'][$index]->layout = $this->box->layout;
			}
		}

		// Render the properties.
		papi_render_properties( papi_sort_order( array_reverse( $args['args'] ) ) );
	}
public function render_meta_box ( $ post , array $ args ) { if ( ! isset ( $ args [ 'args' ] ) ) { return ; } // Do a last check before all properties is rendered. $ args [ 'args' ] = array_filter ( $ args [ 'args' ] , 'papi_is_property' ) ; // Inherit options from the box. foreach ( $ args [ 'args' ] as $ index => $ property ) { if ( $ property -> layout === 'horizontal' ) { $ args [ 'args' ] [ $ index ] -> layout = $ this -> box -> layout ; } } // Render the properties. papi_render_properties ( papi_sort_order ( array_reverse ( $ args [ 'args' ] ) ) ) ; }
Render the meta box

@param array $post
@param array $args
Render the meta box