Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::get_overview_page_url
Get the WooPayments Overview page URL.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
String. The WooPayments Overview page URL.
Usage
// private - for code of main (parent) class only $result = $this->get_overview_page_url(): string;
WooPaymentsService::get_overview_page_url() WooPaymentsService::get overview page url code WC 10.8.1
private function get_overview_page_url(): string {
if ( $this->proxy->call_function( 'is_callable', '\WC_Payments_Account::get_overview_page_url' ) ) {
return add_query_arg(
array(
'from' => self::FROM_NOX_IN_CONTEXT,
),
$this->proxy->call_static( '\WC_Payments_Account', 'get_overview_page_url' )
);
}
// Fall back to the known WooPayments Overview page URL.
return add_query_arg(
array(
'page' => 'wc-admin',
'path' => '/payments/overview',
'from' => self::FROM_NOX_IN_CONTEXT,
),
admin_url( 'admin.php' )
);
}