• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

janboddez/share-on-mastodon: Easily share WordPress posts on Mastodon.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

janboddez/share-on-mastodon

开源软件地址(OpenSource Url):

https://github.com/janboddez/share-on-mastodon

开源编程语言(OpenSource Language):

PHP 97.8%

开源软件介绍(OpenSource Introduction):

Share on Mastodon

Automatically share WordPress posts on Mastodon. You choose which Post Types are shared—though sharing can still be disabled on a per-post basis.

Custom formatting is done through filter hooks rather than the options page UI, and requires some familiarity with PHP. (Always here to help, though!) Benefits are things like infinite flexibility, version control, and, frankly, less code for me to maintain.

Share on Mastodon is compatible with both the Classic and the Block Editor (Gutenberg). It supports mobile apps, too; this requires a so-called filter callback—literally, a single line of PHP!—which you'd typically add to either your theme's functions.php or a site-specific plugin.

Documentation

Complete documentation, and code examples, can be found at https://jan.boddez.net/wordpress/share-on-mastodon.

Installation

The plugin's available from WordPress.org's plugin repo, so you can just head into WP Admin > Plugins > Add New, search for share on mastodon, and install and activate from there.

Configuration

Tell the Share on Mastodon settings page about your instance URL, and make sure to hit Save Changes. You'll then be able authorize WordPress to post on your behalf.

Then, select the Post Types for which sharing to Mastodon should be possible. (Sharing can still be disabled on a per-post basis.)

Media

When a Featured Image is set, Share on Mastodon will try to include it. The same goes for any other images attached to the post. This behavior can be modified through filter hooks.

Advanced

Share on Mastodon comes with a fair number of filters that allow tweaking its behavior. The code examples on the official documentation page should be enough to get you going. Please file a GitHub issue if you need help, still.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap