Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

UI::render()publicWC 1.0

Renders the UI.

{} Это метод класса: UI{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$UI = new UI();
$UI->render();

Код UI::render() WC 6.7.0

public function render() {
	if ( null === $this->table || ! $this->is_download_urls_screen() ) {
		return;
	}

	// phpcs:disable WordPress.Security.NonceVerification.Recommended
	if ( isset( $_REQUEST['action'] ) && 'edit' === $_REQUEST['action'] && isset( $_REQUEST['url'] ) ) {
		$this->edit_screen( (int) $_REQUEST['url'] );
		return;
	}
	// phpcs:enable

	// Show list table.
	$this->table->prepare_items();
	wp_nonce_field( 'modify_approved_directories', 'check' );
	$this->display_title();
	$this->table->render_views();
	$this->table->search_box( _x( 'Search', 'Approved Directory URLs', 'woocommerce' ), 'download_url_search' );
	$this->table->display();
}