Git Product home page Git Product logo

hookpress's People

Contributors

mitcho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hookpress's Issues

Prevent spam from getting through?

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.

Errors on hook creation

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

Blank mutliselect fields after selecting actions or filters --ereg() deprecated PHP7.0..

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))

Fields list is empty

On a completely fresh installation of Wordpress (via Bitnami) on Amazon Lightsail, the only plugin I installed is HookPress, and when I try to add a webhook I see this:

2018-04-18-211007_1286x848_scrot

... so I can't add any webhooks at all. Apologies for the newbie question but it seems like it ought to work?

Getting post_content with <p> tags

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.

Custom Post Types

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.

Were webhooks added to core?

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?

https://en.support.wordpress.com/webhooks/

User_email field

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)?

adding other webhooks: what's the preferred way?

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

Featured image

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?

Add fields to hooks

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"
  }
]

Category Details in Hook Body

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.

hookpress_category

Would be great if I could get any help on this. Even if I get the category ID, that would be fine.

We stopped using Hookpress ๐Ÿ˜ญ

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.