WordPress Update 5.0.2打破了WooCommerce订单标签(全部)

时间:2018-12-20 14:29:13

标签: wordpress woocommerce product orders

我已将网站更新为版本5.0.2,“订单”标签(仅“全部”标签)未显示任何订单。其他选项卡在更新之前工作正常。

1 个答案:

答案 0 :(得分:2)

新更新之前的快速修复。将该代码添加到子主题或父主题 $.connection.hub.url = "http://localhost/signalr/hubs"; var hub = $.connection.MyHub; //MyHub is name of our hub on the server side. //wire up SignalR //register the method which server will call over here hub.client.notifyMethod = function (data) { //wire the incoming notifications console.log(data); }; //Start hub $.connection.hub.start().done(function () { //once we're done with SignalR we can retrieve connectionid console.log($.connection.hub.id); }); 文件

functions.php