WordPress Webmention Plugin: Difference between revisions
m (dfn) |
Snarfed.org (talk | contribs) (ββConfiguration: auto-approve) |
||
Line 15: | Line 15: | ||
* Go to the Settings => Discussion page in your WordPress admin, and check the "Allow link notifications from other blogs (pingbacks and trackbacks)" and "Allow people to post comments on new articles" checkboxes. | * Go to the Settings => Discussion page in your WordPress admin, and check the "Allow link notifications from other blogs (pingbacks and trackbacks)" and "Allow people to post comments on new articles" checkboxes. | ||
=== Automatically approving === | |||
Webmentions often get caught in moderation and/or flagged as spam by Akismet and other spam filter plugins. To prevent this, add this PHP snippet to your theme's <code>functions.php</code> file: | |||
<pre> | |||
function unspam_webmentions($approved, $commentdata) { | |||
Β return $commentdata['comment_type'] == 'webmention' ? 1 : $approved; | |||
} | |||
add_filter('pre_comment_approved', 'unspam_webmentions', '99', 2); | |||
</pre> | |||
== Related Plugins == Β | == Related Plugins == Β |
Revision as of 19:57, 29 August 2016
The Wordpress Webmention Plugin is a WordPress plugin that adds webmention support to WordPress.
- Repository: https://github.com/pfefferle/wordpress-webmention
- WordPress plugin directory: https://wordpress.org/plugins/webmention/
Incoming webmentions are added as comments to the original post and webmentions are sent when a post is published/updated.
Installation
The WordPress Webmentions plugin is available in the WordPress.org repository. The development version is available on Github.
Configuration
While the plugin has no specific settings, for it to work, you must enable link notifications.
- Go to the Settings => Discussion page in your WordPress admin, and check the "Allow link notifications from other blogs (pingbacks and trackbacks)" and "Allow people to post comments on new articles" checkboxes.
Automatically approving
Webmentions often get caught in moderation and/or flagged as spam by Akismet and other spam filter plugins. To prevent this, add this PHP snippet to your theme's functions.php
file:
function unspam_webmentions($approved, $commentdata) { return $commentdata['comment_type'] == 'webmention' ? 1 : $approved; } add_filter('pre_comment_approved', 'unspam_webmentions', '99', 2);
Related Plugins
- Semantic Linkbacks
- Webmentions for (Threaded) Comments - Adds support for threaded comments for webmentions
- Post Kinds Plugin