shortlist-digital/agreable-apple-news-plugin
最新稳定版本:3.16.0
Composer 安装命令:
composer require shortlist-digital/agreable-apple-news-plugin
包简介
Wordpress plugin for Shortlist Media.
README 文档
README
Acceptable Facebook embed links
- https://www.facebook.com/{page-name}/posts/{post-id}
- https://www.facebook.com/{username}/posts/{post-id}
- https://www.facebook.com/{username}/activity/{activity-id}
- https://www.facebook.com/photo.php?fbid={photo-id}
- https://www.facebook.com/permalink.php?story_fbid={post-id}
- https://www.facebook.com/photos/{photo-id}
I think the last example link it a potential bug or old style link since I haven't seen any similar in the database. Whereas, we have to convert the often used photo url.
Run the tests
To run the automated tests you'll need to execute this inside Vagrant if working locally
- Change working directory
cd [project location]/app/plugins/agreable-apple-news-plugin
- Run
behat, it will be located in the parent folder normally
../../../../vendor/bin/behat
If for some reason the plugin does not work check the wordpress permalinks setting is set to custom structure with /%category%/%postname%
To get sections, use this
$base = "https://news-api.apple.com";
$credentials = new Credentials(getenv('APPLE_NEWS_API_KEY'), getenv('APPLE_NEWS_API_SECRET'));
$channel = getenv('APPLE_NEWS_CHANNEL_ID');
$sections = (new Api($base, $credentials))->get_sections($channel);
统计信息
- 总下载量: 3.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-03