最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Plugin callback page

programmeradmin2浏览0评论

I am trying to create a page in my plugin which will simply act as a callback page for oAuth.

Following the advice on this article: - /

For example, if you are developing your plugin named ‘foo’ on your website ‘example’ and you put your blank oAuth callback file named ‘oauth2callback’ in that plugin folder, the URL you should be able to load into your browser would be ‘’

I've created a page in my custom plugin: /custom-plugin/0auth2callback.php

Checked what my plugin directory URL is:

define( 'PLUGIN_BASE_DIR', plugins_url( '/', __FILE__ ) );
var_dump(PLUGIN_BASE_DIR);

/

So I expected to use:

I simply get a 404 page. The contents of my oauth2callback page is die('test'); I don't see that text.

Note I am using roots.io framework, this is why my plugin directory URL is slightly different to the norm.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论