You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
-61Lines changed: 0 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,67 +28,6 @@ This project is placed in the public domain. You may also use it under the [CC0
28
28
29
29
## WordPress details ##
30
30
31
-
### Filters and hooks ###
32
-
Adds ten filters:
33
-
34
-
`before_micropub( $input )`
35
-
36
-
Called before handling a Micropub request. Returns `$input`, possibly modified.
37
-
38
-
`micropub_post_content( $post_content, $input )`
39
-
40
-
Called during the handling of a Micropub request. The content generation function is attached to this filter by default. Returns `$post_content`, possibly modified.
Called to generate the list of `syndicate-to` targets to return in response to a query. Returns `$synd_urls`, an array, possibly modified. This filter is empty by default
53
-
54
-
`micropub_query( $resp, $input )`
55
-
56
-
Allows you to replace a query response with your own customized version to add additional information
57
-
58
-
`micropub_suggest_title( $mf2 )`
59
-
60
-
Allows a suggested title to be generated. This can be used either to generate the post slug or for individuals who want to use it to set a WordPress title
61
-
62
-
`indieauth_scopes( $scopes )`
63
-
64
-
This returns scopes from a plugin implementing IndieAuth. This filter is empty by default.
65
-
66
-
`indieauth_response( $response )`
67
-
68
-
This returns the token auth response from a plugin implementing IndieAuth. This filter is empty by default.
69
-
70
-
`pre_insert_micropub_post( $args )`
71
-
72
-
This filters the arguments sent to wp_insert_post just prior to its insertion. If the ID key is set, then this will short-circuit the insertion to allow for custom database coding.
73
-
74
-
...and two hooks:
75
-
76
-
`after_micropub( $input, $wp_args = null)`
77
-
78
-
Called after handling a Micropub request. Not called if the request fails (ie doesn't return HTTP 2xx).
79
-
80
-
`micropub_syndication( $ID, $syndicate_to )`
81
-
82
-
83
-
Called only if there are syndication targets $syndicate_to for post $ID. $syndicate_to will be an array of UIDs that are verified as one or more of the UIDs added using the `micropub_syndicate-to` filter.
84
-
85
-
Arguments:
86
-
87
-
*`$input`: associative array, the Micropub request in [JSON format](http://micropub.net/draft/index.html#json-syntax). If the request was form-encoded or a multipart file upload, it's converted to JSON format.
88
-
*`$wp_args`: optional associative array. For creates and updates, this is the arguments passed to `wp_insert_post` or `wp_update_post`. For deletes and undeletes, `args['ID']` contains the post id to be (un)deleted. Null for queries.
89
-
90
-
### Other ###
91
-
92
31
Stores [microformats2](http://microformats.org/wiki/microformats2) properties in [post metadata](http://codex.wordpress.org/Function_Reference/post_meta_Function_Examples) with keys prefixed by `mf2_`. [Details here.](https://indiewebcamp.com/WordPress_Data#Microformats_data) All values are arrays; use `unserialize()` to deserialize them.
93
32
94
33
Does *not* support multithreading. PHP doesn't really either, so it generally won't matter, but just for the record.
0 commit comments