Automattic\WooCommerce\Internal\Admin\Orders

PageController::get_orders_url()publicWC 1.0

Helper method to generate a link to the main orders screen.

Метод класса: PageController{}

Хуков нет.

Возвращает

Строку. Orders screen URL.

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

$PageController = new PageController();
$PageController->get_orders_url(): string;

Код PageController::get_orders_url() WC 9.5.1

public function get_orders_url(): string {
	return wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled() ?
		admin_url( 'admin.php?page=wc-orders' ) :
		admin_url( 'edit.php?post_type=shop_order' );
}