manifest / integrations / wordpress-custom-webhook
WordPress Custom Webhook
This Helps to create a webhook url on your wordpress site
★ 17stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/preciousomonze/wordpress-custom-webhook/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress Custom Webhook Class
Description
This class helps you create your custom webhook url you can use for whatever reason. you can include it in your plugin and call the file, or make it an mu-plugin(Must-Use plugin) (Read about mu-plugins here).
Reason: This was developed based on the vexation of Haastrup Adejoke trying to develop webhooks 😆😂
How to use
Including it into your custom plugin
- Download the class-wp-webhook.php file.
- Customize the following to your unique values:
-
Class name :
Pekky_WP_Webhookto your custom name you want -
change the values of
private static $webhook,private static $webhook_tag, andprivate static $webhook_actionto what you want./** * Parent wekbhook * replace with a unique value you want * * @var string */ private static $webhook = 'pekky-api'; /** * webhook tag * replace with a unique value you want * * @var string */ private static $webhook_tag = 'pekky_webhook'; /** * Action to be triggered when the url is loaded * replace with a unique value you want * * @var string */ private static $webhook_action = 'hook_action';This step 2 also applies to Including it as an mu-plugin
- 🤧 that's all.
Including it into your custom plugin
- download the mu-class-wp-webhook.php file in the repo.
- put the file in your wordpress site directory inside wp-content/mu-plugins folder(this the default mu-plugin folder, if you've altered it, please use your respective folder).
- 🤧 that's all.