Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalController::get_shop_url
Get a safe shop URL for the confirmation link.
Method of the class: OrderWithdrawalController{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->get_shop_url(): string;
OrderWithdrawalController::get_shop_url() OrderWithdrawalController::get shop url code WC 11.1.2
private function get_shop_url(): string {
$shop_url = wc_get_page_permalink( 'shop' );
return $shop_url ? $shop_url : home_url( '/' );
}