在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):janboddez/share-on-mastodon开源软件地址(OpenSource Url):https://github.com/janboddez/share-on-mastodon开源编程语言(OpenSource Language):PHP 97.8%开源软件介绍(OpenSource Introduction):Share on MastodonAutomatically 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 DocumentationComplete documentation, and code examples, can be found at https://jan.boddez.net/wordpress/share-on-mastodon. InstallationThe 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. ConfigurationTell 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.) MediaWhen 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. AdvancedShare 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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论