mitcho / hookpress Goto Github PK
View Code? Open in Web Editor NEWHookPress
HookPress
We use Akismet for spam collecting, but I don't see a way to prevent HookPress from firing off the spam to the endpoints. So we're constantly getting updates in our team chat with leads on where to find cheap lebron james shoes and where to buy viagra in bulk.
Hello.
On creation of a new hook, two errors are generated. (wp 4.4.1, php 5.4.45)
This is the first:
Deprecated: Function split() is deprecated in /home/devredpupmedia/public_html/client/brand/wp-content/plugins/hookpress/services.php on line 60
I was able to resolve it by editing line 60 in /services.php as follows:
'fields'=>explode(',',$_POST['fields']),
Also edited line 49 in the same file with the same edit.
The second:
Strict Standards: Only variables should be passed by reference in /home/devredpupmedia/public_html/client/brand/wp-content/plugins/hookpress/hookpress.php on line 68
edit_post
I was able to resolve it by editing line 68 in /hookpress.php as follows:
$tmp = array_keys($webhooks);
return end($tmp);
I'm not polished in PHP so I'm asking if these changes are acceptable for use in the plugin.
Thanks
When adding a Webhook, no fields items are displaying after selecting actions or filters .
The following error is logged:
PHP Fatal error: Uncaught Error: Call to undefined function ereg() in /path/wp-content/plugins/hookpress/services.php:13
Two possible solutions:
Solution 1
// changing the deprecated ereg() function to mb_ereg()
from: if (ereg('[A-Z]+',$arg))
to: if (mb_ereg('[A-Z]+',$arg))
Solution 2 (seems to be more recommended):
// changing the deprecated ereg() function to preg_match()
from: if (ereg('[A-Z]+',$arg))
to: if (preg_match('/[A-Z]+/',$arg))
Hi Mitcho,
Thanks for the plugin. I'm using it with Zapier integration and noticed that post_content comes without
tags which makes it really hard to repost content on other platforms with proper formatting. I'm reposting wordpress blogs to medium through zapier and would like to keep formatting as it was in WP post.
I found this StackOverflow answer could be useful to create an extra field post_content_formatted
.
I'll submit PR in the next couple of days to add the change unless you prefer to do it yourself.
I'm using the 'Custom Post Type UI' plugin, and was wondering if I might be able to specify which custom post type to call the hook, as it only seems to work with the out of the box 'POST' type.
I get an empty pop-up box when I hit edit hook. It the same issue as discussed in this link
Hi Mitcho,
I'm checking out your plugin because I'm needing a way to export actions to a django app.
Have webhooks been added to wordpress core?
I found this support article that seemed to suggest that it's default behavior on wordpress.com, but I guess not in open-source wordpress?
I'm currently using this version of hookpress - https://github.com/Willemdumee/hookpress
I noticed that user_email field is missing in the actions dropdown (even though we had this field in the original plugin).
Is there any way to add this field to the current version of plugin (by Willem Dumee)?
While the plugin is really super-useful for anything "blog related" it could do really more if we only could add other webhooks.
I can see that the "list" of actions and hooks is filterable here https://github.com/mitcho/hookpress/blob/master/hooks.php#L139 and here https://github.com/mitcho/hookpress/blob/master/hooks.php#L243
so we can add more options, but I'm not sure if and how we can then hooks in other plugin parts to manage arguments and so on.
Any hint on hooks to be used or other strategies will be useful.
I can then work to make a pull request to address this
Stefano
When pressing edit hook we get an empty form (both Firefox and Chrome)
Bug screenshot url https://www.diigo.com/item/image/4vsax/omw8
Hey, great work with this plugin, one thing I've noticed is that it's not returning the featured image in the post information, is there a way to get it?
Hi Mitcho, I am wondering if you are going to update hookpress so it is compatible with php7?
I'm interested in adding fields to publish_post
and edit_post
such as related objects like post_thumbnail
and terms
.
I have used the XMLRPC API in the past to request this attributes, but would like to have them sent along in a hook.
In this case I'm hoping to add what would effectively be nested attributes to the attribute array. This is an example of the type of data I would like to be able to add.
What would it take to add these? Or how could they be added?
"post_thumbnail": {
"attachment_id": "24",
"date_created_gmt": "2015-10-05 22:07:01",
"parent": 19,
"link": "https://foo.files.wordpress.com/2015/04/foo.jpg",
"title": "foo",
"caption": "",
"description": "",
"metadata": {
"width": 1280,
"height": 960,
"file": "/home/wpcom/public_html/wp-content/blogs.dir/453/88434674/files/2015/04/foo.jpg",
"sizes": [
],
"image_meta": {
"aperture": 2.4,
"credit": "",
"camera": "iPhone 5",
"caption": "",
"created_timestamp": 1424101192,
"copyright": "",
"focal_length": "2.18",
"iso": "32",
"shutter_speed": "0.0024271844660194",
"title": "",
"orientation": 1
}
},
"thumbnail": "https://foo.files.wordpress.com/2015/04/foo.jpg?w=150"
}
"terms": [
{
"term_id": "1",
"name": "Uncategorized",
"slug": "uncategorized",
"term_group": "0",
"term_taxonomy_id": "1",
"taxonomy": "category",
"description": "",
"parent": "0",
"count": 6,
"filter": "raw"
}
]
Hi,
Thanks for this plugin - I can now extend Wordpress for my requirement.
I seems to have one problem though - I have created 3 webhooks for create, edit & delete categories (create_category, edit_category, delete_category). The webhooks are fired correctly - but the data inside the Body seems to have only the hook name. Other details are missing. I tried selecting all fields/few fields/ID field alone for the webhook - nothing seem to work.
Request bin link to view the payload : http://requestb.in/ryja6wry?inspect
Also, attaching the screenshot of the hook, for reference.
Would be great if I could get any help on this. Even if I get the category ID, that would be fine.
Hello!
This is for anybody who's coming here after Hookpress stops working, or they are looking for an alternative.
I had to change my webhook URL from Zapier to API Gateway. Hookpress completely stopped working. I debugged for a couple of hours but sadly couldn't get it working again...
Hookpress bravely soldiered on for all these years but I'm finally saying goodbye to it. There is actually an alternative for sending Webhooks from Wordpress now: https://wordpress.org/plugins/wp-webhooks/
Thanks for making this amazing plugin, I know there are a lot of people out there who got as much or more value out of it than me.
Bye!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.