DiskusiKatagori: WoocommerceCara merubah link url shop woocommerce ke halaman lain /produk lain
sukawp™ Staff asked 2 tahun ago
function custom_shop_page_redirect(){ 
if( is_shop()){
wp_redirect( home_url( '/product-category/coffee/'));
exit();
}
}
add_action( 'template_redirect', 'custom_shop_page_redirect' );