Micropub

Micropub

توسط

Micropub is an open API standard that is used to create posts on your site using third-party clients. Web apps and native apps (e.g. iPhone, Android) can use Micropub to post short notes, photos, events or other posts to your own site, similar to a Twitter client posting to Twitter.com. Requires the IndieAuth plugin for authentication.

Once you’ve installed and activated the plugin, try a client such as Quill to create a new post on your site. It walks you through the steps and helps you troubleshoot if you run into any problems. A list of known Micropub clients are available here.

Supports the full Micropub spec.

As this allows the creation of posts without entering the WordPress admin, it is not subject to any Gutenberg compatibility concerns per se. Posts created will not have Gutenberg blocks as they were not created with Gutenberg, but otherwise there should be no issues at this time.

Available in the WordPress plugin directory at wordpress.org/plugins/micropub.

Filters and Hooks

Filters

before_micropub( $input )

Called before handling a Micropub request. Returns $input, possibly modified.

micropub_post_content( $post_content, $input )

Called during the handling of a Micropub request. Returns $post_content, possibly modified.

micropub_post_type( $post_type = 'post', $input )

Called during the creation of a Micropub post. Defaults to post but allows setting a custom post type.

micropub_tax_input( $tax_input, $input )

Called during the creation of a Micropub post. Allows setting custom taxonomy.

micropub_syndicate-to( $synd_urls, $user_id, $input )

Called to generate the list of syndicate-to targets.

micropub_query( $resp, $input )

Allows you to replace a query response with your own customized version.

micropub_suggest_title( $mf2 )

Allows a suggested title to be generated for the post slug.

pre_insert_micropub_post( $args )

Filters the arguments sent to wp_insert_post just prior to insertion.

Hooks

after_micropub( $input, $wp_args = null )

Called after handling a Micropub request. Not called if the request fails.

micropub_syndication( $ID, $syndicate_to )

Called only if there are syndication targets for the post.

Follow the normal instructions for installing WordPress plugins.

Automatic Plugin Installation

  1. Go to Plugins > Add New
  2. Search for “micropub”
  3. Click Install Now, then Activate

Manual Plugin Installation

  1. Download the plugin from GitHub or WordPress.org
  2. Upload to wp-content/plugins/
  3. Activate the plugin

سوالات متداول

What is Micropub?

Micropub is a W3C Recommendation that defines an open API standard for creating, updating, and deleting posts on your own website.

I am experiencing issues in logging in with IndieAuth.

There are a series of troubleshooting steps in the IndieAuth plugin for this. The most common problem involves the token not being passed due the configuration of your hosting provider.

Why do I need the IndieAuth plugin?

For reasons of security it is recommended that you only use this plugin on sites that implement HTTPS. Authentication is not built into this plugin. The IndieAuth plugin provides the authentication layer.

What Micropub extensions are supported?

Supports Stable Extensions:

Supports Proposed Extensions:

What configuration options are available?

These configuration options can be enabled by adding them to your wp-config.php:

  • define('MICROPUB_NAMESPACE', 'micropub/1.0') – Change the namespace for the micropub endpoint
  • define('MICROPUB_DRAFT_MODE', 1) – Override default post status and set to draft for debugging
تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
نسخه حجم فایل SHA256 تغییرات دانلود
2.5.0 28 کیلوبایت -
دانلود
×
★★★★★
★★★★★
5.0 /5 (4 نظر)

قیمت:

رایگان

نگارش

2.5.0

آخرین انتشار

19 اردیبهشت 1405

آخرین بروزرسانی

1 ماه پیش

نصب های فعال

200+

نگارش وردپرس

وردپرس 4.9.9+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 7.2+

نسخه ها

1 نسخه