WPIntell

Source evidence

Small code refactor and filter

Micropub · support · 2021-09-09T06:00:00+00:00

complaintsentiment
mediumseverity
0.92relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 18 rows with source links

5.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

17 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
shawfactor unresolved
David, Ryan, and team, Firstly great plugin. I have one developer driven feature request that should be simple to deliver. Basically that you separate out the static function create in class-micropub-endpoint.php, into two seprarte functions. The first should prepare all the arguments and the sec ond should actually insert the data into the database. The second function should then have an additional filter right before wp_insert_post to allow for the indeiweb content to be inserted into another table, rather than wp_posts. My use case being that I want to integrate buddypress with micropub, and as such I want to map some of the indeweb content types into buddypress type activities which involves inserting them into a different table. @shawfactor Happy to work on this. Made a note of it as a Github issue on our repository at https://github.com/indieweb/wordpress-micropub/issues/252 @shawfactor The latest update adds the insert filter. However, there is no update filter at this time. Wanted to check to see what you needed. thankyou! But yes yoiu are right, having a look tjrough the code I’d need to be able to filter create, update, dleete, undeleet and the returned url. No hurry but do you think that is achievable? Pete

Comments

3 shown
David Shanske 2021-09-11T19:05:00+00:00

@shawfactor Happy to work on this. Made a note of it as a Github issue on our repository at https://github.com/indieweb/wordpress-micropub/issues/252

David Shanske 2021-09-22T04:42:00+00:00

@shawfactor The latest update adds the insert filter. However, there is no update filter at this time. Wanted to check to see what you needed.

shawfactor 2021-09-22T08:22:00+00:00

thankyou! But yes yoiu are right, having a look tjrough the code I’d need to be able to filter create, update, dleete, undeleet and the returned url. No hurry but do you think that is achievable? Pete