woocommerce/plugins/woocommerce-admin/client/tasks/fills/experimental-shipping-recom.../utils.ts

14 lines
294 B
TypeScript
Raw Normal View History

/**
* External dependencies
*/
import { getAdminLink } from '@woocommerce/settings';
export const redirectToWCSSettings = () => {
if ( window?.location ) {
window.location.href = getAdminLink(
'admin.php?page=wc-settings&tab=shipping&section=woocommerce-services-settings'
);
}
};