Update load onboarding sample product link

This commit is contained in:
Chi-Hsuan Huang 2022-04-29 12:06:35 +08:00
parent 5476f4c80f
commit be50584b67
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ export const Products = () => {
loadSampleProduct,
isLoadingSampleProducts,
} = useLoadSampleProducts( {
redirectUrlAfterSuccess: getAdminLink( 'edit.php?post_type=product' ),
redirectUrlAfterSuccess: getAdminLink(
'edit.php?post_type=product&wc_onboarding_active_task=products'
),
} );
const visibleProductTypes = useMemo( () => {