Automattic\WooCommerce\Internal\Admin\Orders

PageController::get_orders_url()publicWC 1.0

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

Method of the class: PageController{}

No Hooks.

Return

String. Orders screen URL.

Usage

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

PageController::get_orders_url() code WC 7.1.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' );
}