Php 如何修复错误:';YoShop#u Direct#u Checkout';没有方法';自定义添加到购物车重定向&x27;

Php 如何修复错误:';YoShop#u Direct#u Checkout';没有方法';自定义添加到购物车重定向&x27;,php,wordpress,Php,Wordpress,我的日志错误文件中有以下错误: [Tue May 02 12:16:06 2017] [error] [client 46.**.88.4] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'YoShop_Direct_Checkout' does not have a method 'custom_add_to_cart_redirect' in /var/www/cl

我的日志错误文件中有以下错误:

[Tue May 02 12:16:06 2017] [error] [client 46.**.88.4] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'YoShop_Direct_Checkout' does not have a method 'custom_add_to_cart_redirect' in /var/www/clients/client1/web35/web/wp-includes/plugin.php on line 235, referer: http://domain.###/
这使我的网站速度变慢,而且有问题,我如何修复它? PS:如果我停止插件,我不能跳过添加购物车-因此,当用户通过单击以下按钮购买任何东西时:

<a href="/checkout/?product_id=4357&amp;quantity=1" rel="attachment wp-att-542"><img style="border-radius: 10px; max-width: 950px !important; text-align: center !important;" src="http://domain.###/wp-content/uploads/2016/03/pic.jpg" alt=""></a>

他们应该被重定向到结帐页面,而不是购物车页面

你能帮帮我吗

(我在这里看到一个没有答案的类似问题: )

(我当时也尝试了所有其他可用的插件(2017年5月2日),但没有任何效果:()

可能我需要在finctions.php文件中粘贴一些代码? 或者我不知道-请帮助我

我相信这会帮助很多人,因为我在互联网上发现了很多关于它的问题——没有答案。。。。。。。。 提前谢谢各位

致以最良好的祝愿:/p.拉什科夫/