Wordpress 使用Fishpig wp_集成从Magento调用Jetpack订阅

Wordpress 使用Fishpig wp_集成从Magento调用Jetpack订阅,wordpress,magento,jetpack,fishpig,Wordpress,Magento,Jetpack,Fishpig,如何使用Fishpig Wordpress集成从Magento向Wordpress index.php发送请求 我已经用Fishpig Wordpress集成设置了Magento CE。博客通过Fishpig扩展正确地集成到Magento中。Wordpress安装在magento_root/wp目录中。我的Wordpress地址是。我的网址是 我试图在博客的Magento页面的侧栏中复制Jetpack subscribe侧栏小部件,但未能找到正确的url来发送请求。使用Worpress+Jetp

如何使用Fishpig Wordpress集成从Magento向Wordpress index.php发送请求

我已经用Fishpig Wordpress集成设置了Magento CE。博客通过Fishpig扩展正确地集成到Magento中。Wordpress安装在magento_root/wp目录中。我的Wordpress地址是。我的网址是

我试图在博客的Magento页面的侧栏中复制Jetpack subscribe侧栏小部件,但未能找到正确的url来发送请求。使用Worpress+Jetpack且不集成Magento时,请求将发送到,请求对象如下所示:

[email] => me@example.com
[action] => subscribe
[source] => http://site.localhost/wp/
[sub-type] => widget
[redirect_fragment] => blog_subscription-2
[_wpnonce] => ab277d6d6f
[jetpack_subscriptions_widget] => Subscribe
我尝试使用和作为我的请求url

我通过以下方式解决了这个问题:

创建Magento订阅控制器-我将app/code/community/Fishpig/Wordpress复制到app/code/local/Fishpig/Wordpress/并创建了app/code/local/Fishpig/Wordpress/controllers/SubscribeController.php 在SubscribeController.php中创建subscribeAction方法。subscribeAction方法使用makeHttpPostRequest$url,array$data=array,该数组包含在Helper/System.php中的Fishpig/Wordpress模块中 从Magento subscribe块模板向subscribe controller发出ajax请求。
我需要把它作为API来做。你能帮我怎么做吗。