Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin
UI::render()
Renders the UI.
Метод класса: UI{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$UI = new UI(); $UI->render();
Код UI::render() UI::render WC 8.3.1
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(); }