2
我正在使用Woocommerce,并且只想在订单追踪页面上触发一些代码。有没有像is_cart任何函数()或is_shop()来检查当前页面订单跟踪页或不是?Woocommerce,如何查看当前页面是订单跟踪页面?
我的代码片段,以确定其他Woocommerce页面,如下类似:
if(is_woocommerce() || is_cart() || is_checkout() || is_account_page()){
//do this things..
}
if(*order-tracking-page*){
// do this things
}
请让我知道是否有任何方法或函数来确定当前页面订单跟踪页面。
嘿@玛哈开发它的工作..!非常感谢.. :)(y) –