API vs Webhook :: Creating a custom Webhook in WordPress

  Рет қаралды 28,237

TechiePress

TechiePress

Күн бұрын

Ever wondered what the main difference between an API and Webhook is? WordPress makes a clear distinction between the two by providing the simple tools to make each one of them.
Learn how to create a custom Webhook from WordPress events to a Particular URL of an external App. We shall use the Integration automation tool. You can access it using from omukiguy.com/integromat
** NEXT WATCH **
Post or Send WordPress data to an External API using wp_remote_post() -- • Post or Send WordPress...
Woocommerce API Authentication & Authorization for External Apps -- • Woocommerce API Authen...
=============================================
Do you like what I am doing? You can buy me a coffee through PayPal: paypal.me/laurencebahiirwa
Or purchasing through my Plugin Affiliate links:
==== To Get a Domain and WebHosting ====
- Web Hosting with Bluehost ---- omukiguy.com/bluehost
- Web Hosting with Hostgator ---- omukiguy.com/hostgator
==== Use simple Build Website Tools ====
- Integromat ------ omukiguy.com/integromat
- Elementor Pro ------ omukiguy.com/elementor
- Crocoblock ----------- omukiguy.com/crocoblock
- Woo Feed Pro ------- omukiguy.com/webappick/
- Woo Invoice Pro ---- omukiguy.com/webappick/
I am social too:
Facebook: / techiepress-1001496550...
Twitter: / omukiguy
Blog: omukiguy.com
GitHub: github.com/Omukiguy
-------------------------------------------------------------------------------
LEARN MORE IN THE WELL CURATED PLAYLISTS BELOW
--------------------------------------------------------------------------------
Learn how to build a plugin from scratch: • Plugins Vs Functions.p...
WooCommerce E-Commerce customizations
== Build Free Custom E-commerce Online Shop using WooCommerce - • WooCommerce customizat...
== Build Free Custom Theme for E-commerce Online Shop using WooCommerce -
• Woocommerce Restaurant...
====== Build Dynamic Websites with Elementor ======
== Learn the Elementor basics - • Elementor Beginner Tut...
== Build a custom Elementor Widget from Scratch - • Build Custom Elementor...
====== How to use WordPress Gutenberg Block Editor ======
WordPress 5.4 Gutenberg Blocks Updates
== • WordPress 5.4 Gutenber...
WordPress Gutenberg blocks for Designers
== • WordPress Basics Train...
Gutenberg WordPress Block Editor tutorials for beginners
== • WordPress Basics Train...
Custom WooCommerce Gateway Development from Scratch
== • Build Custom WooCommer...
WordPress Custom REST API Namespaces, Endpoints and Examples from Scratch
== • Create Custom WordPres...
====== WordPress Plugin Development from Scratch ======
Build Most Popular & Most Commented Post Plugin
== • Build WordPress Most P...
Build SMS Plugin with External WordPress API Integration using custom WordPress Databases
== • Build SMS Plugin - Ext...
WordPress External APIs Integration Plugin Development
== • WordPress External API...
Convert WordPress to mobile App in Headless WordPress
== Convert WordPress Sports Website into Mobile Application - kzbin.info?list...
Make GraphQL API endpoints with WordPress Headless CMS WPGraphQL Plugin
== • Make GraphQL API endpo...
Customize Your WordPress & ClassicPress
== Build Custom REST API Endpoints with WordPress or ClassicPress - • Build Custom REST API ...
Custom Dashboard Widgets
== • Custom Dashboard Widge...
Build Custom Admin
== • Custom Admin for WordP...
Learn Git
== Git tutorial for writers + software developers for beginners - • Git tutorial for begin...

Пікірлер: 56
@neeryks
@neeryks Жыл бұрын
you sir are a genius, such easy language, dont stop making content.
@m.o.7661
@m.o.7661 2 жыл бұрын
Man, a master piece of a class. You taught so many items in a single teaching. I thought webhooks were something out of this world! Of course it all depends of what I need it to do, however you on simple steps showed how things work and how the information comes from A to B. I am a non-techie and I would love to follow your courses. let me know what courses you have and how I sign up. Thanks
@aarondeimund6898
@aarondeimund6898 2 жыл бұрын
Nice intro to this subject. Thanks man!
@teddyadarsuren8915
@teddyadarsuren8915 3 жыл бұрын
One of the most informative, very easy to digest content! I've been looking for a good video that explains API and Webhooks for Wordpress for a while, but none of them was this good and informative at the same time. On top of that, you clarified all the gaps about API and webhooks for me as well. Big thumbs up and thanks a LOT, man!
@TechiePress
@TechiePress 3 жыл бұрын
Thank you for the kind words. I struggled with this for quite a while when webhooks were a big thing. So glad to share it in simple terms
@teddyadarsuren8915
@teddyadarsuren8915 3 жыл бұрын
@@TechiePress One side question around this topic. Is it possible to update the content in the Custom field through Integromat and show it in the front end?
@TechiePress
@TechiePress 3 жыл бұрын
Yes, this is possible. If you are using the default WordPress metaboxes, using update_post_meta() solves that. If you are using ACF, there is update_fields(). Integromat would help make this automated.
@teddyadarsuren8915
@teddyadarsuren8915 3 жыл бұрын
@@TechiePress Awesome! I need to spend some time getting familiar with these custom fields first lol. I think it would offer great value for ppl like me if u could make a tutorial abt that in the future! Thanks a ton!
@TechiePress
@TechiePress 3 жыл бұрын
There is something like that here kzbin.info/www/bejne/fpOpoaGcebKXlac It is a part of a series, let me know if it makes some things a little clearer.
@dashingpix
@dashingpix 3 жыл бұрын
As always, very informative content. Thank You :)
@TechiePress
@TechiePress 3 жыл бұрын
Glad you enjoyed it!
@hasinurrahman6054
@hasinurrahman6054 Жыл бұрын
I am looking for a good tutorial about webhooks. This one is awesome for me. Thanks a lot for providing this video.
@imran-adv
@imran-adv Жыл бұрын
You are a legend. Never found such practical contents on Google or KZbin, Salute to you for videos on advance topics. Lots of appreciation from Pakistan. Please continue more videos on Advance WordPress WooCommerce.
@TechiePress
@TechiePress Жыл бұрын
Thank you Mr. Imran for the kind words. I am going to add more stuff. I just need to get my schedule in order.
@alinandrei9006
@alinandrei9006 3 жыл бұрын
I was looking for the reverse, adding a webhook to an application/service and intercept them in Wordpress but this was very helpful! Thanks pall
@TechiePress
@TechiePress 3 жыл бұрын
You are welcome. If you have some more time check this out kzbin.info/www/bejne/p3W6g3qnd8eIedU. Might be a better catch.
@BiggiDroid
@BiggiDroid 3 жыл бұрын
My Mentor, love you bro
@lewyathan
@lewyathan 2 жыл бұрын
@TechiePress you're doing such an amazing job! Subbed and liked every vid i watched! hope it boosts the channel in yt algorithm!
@ashrafzaky
@ashrafzaky 4 ай бұрын
Thank you very much, it's really a helpful video.
@mevthawk
@mevthawk Жыл бұрын
Thank you for making me understand quickly.
@TechiePress
@TechiePress Жыл бұрын
I am glad this was helpful. I hope you make good stuff from this.
@jonwright7012
@jonwright7012 Жыл бұрын
Great video and I managed to get this to work. Couple of pointers: You didn't mention that when you've built your plugin, you need to activate it in Plugins>Installed Plugins in WP Admin (took me a while to realise this) and it would be great to see how you amend this to include extra things such as; published date, modified date, author, category etc.
@TechiePress
@TechiePress Жыл бұрын
Thanks Jon. I will be sure to take note of that in coming videos. I am glad that you got everything to work.
@muafaa
@muafaa Жыл бұрын
Need more tutorial like thiss
@m.o.7661
@m.o.7661 2 жыл бұрын
Hey there, how could I do the same but include several taxonomies for each post? I stuck on that. Would you have some guidance?
@TweaksPH
@TweaksPH Жыл бұрын
auto post any update you change in your wordpress website to your copy of your wordpress website in a static form in github pages. how to webhook that?
@keywordniches2207
@keywordniches2207 7 ай бұрын
what if i have a wordpress plugin but it does not support the gateway i want. I dont want to use integromat or zapier because of the costs. this is my scenario: I have multiple values for each serive so i need to have a wordpress contactform that calculates the total price. I normally could add a redirect on the button and then redirect to the payment page of the payment gateway but because each time i have variant values i can not do this. Do you know a way on how to do this with wordpress? i know this is through webhooks but how can i add this to any plugin?You can make a video on this? for example for Booking Calendar | Appointment Booking | BookIt. that would be awesome. thank you
@jesuscortes3041
@jesuscortes3041 2 жыл бұрын
Thanks! very useful! For post update, the action name 'save_post' is the same?
@TechiePress
@TechiePress 2 жыл бұрын
Yes, you can use the same action.
@KingdomCre8tive
@KingdomCre8tive Жыл бұрын
is it similar to connecting Mailchimp 4 wordpress??? I am stuck on hard coding that into my theme. can u help?
@pedromatias3642
@pedromatias3642 3 жыл бұрын
i am enjoying a lof your approach. Congratulations for this tutorial, was very helpfull. Thanks so much!! i need to accomplish something different, each time a user completes an Order I need to replicate that exact order to another WP site. Btw do you know any online reference specific to this issue? Will help me a lot if pointed to the right direction.
@TechiePress
@TechiePress 3 жыл бұрын
You can set up a webhook trap on the other website and use something like this kzbin.info/www/bejne/p3W6g3qnd8eIedU for the orders Post Type. Otherwise I am not too sure about migration tools like that in real time.
@louaykhammar7268
@louaykhammar7268 2 жыл бұрын
Thanks
@entertainmenttopten5139
@entertainmenttopten5139 2 жыл бұрын
THANKS. Please, Can you give us the full tutorial webhook
@micasntna
@micasntna 2 жыл бұрын
would a cron job would work as this service that he mention integromat thing?
@TechiePress
@TechiePress 2 жыл бұрын
Yap. That would work very well. WordPress crons are tricky though. Try using the server crons or actionscheduler.
@entertainmenttopten5139
@entertainmenttopten5139 2 жыл бұрын
Hi, Great video! Thanks! quick question, I want to fire a webhook when a user presses a button on my site, is this possible?
@TechiePress
@TechiePress 2 жыл бұрын
Yes, that’s possible. You need to use Ajax for that however. Something in line with this kzbin.info/www/bejne/o6m4p4avq62ljNU
@entertainmenttopten5139
@entertainmenttopten5139 2 жыл бұрын
@@TechiePress thanks again! Another question sorry: is it possible to make webhook so for example when a plugin is installed to send a REST API call to a 3rd party?
@TechiePress
@TechiePress 2 жыл бұрын
Yes. There are hooks to tap when a plugin has been activated. Then you push the webhook.
@d-rey1758
@d-rey1758 Жыл бұрын
how do you send a webhook to your hosting server. like how do you assign a delivery URL to that
@TechiePress
@TechiePress Жыл бұрын
It depends on how the data disseminating service is structured to do this. Most have a way of how to do it in their documentation. However, on your site, you tap into the events default in WordPress or use do_action() hooks to provide event points for you to send out data.
@ST-nm7pr
@ST-nm7pr 3 жыл бұрын
Hi quick question, I want to fire a webhook when a user presses a button on my site, how would I go about implementing that? Thanks in advance
@TechiePress
@TechiePress 3 жыл бұрын
You will have to use Ajax to trigger a button like I did in kzbin.info/www/bejne/rYHGY6WOZ8uYiKc so that you run your PHP webhooks. Let me know if this helps.
@KingdomCre8tive
@KingdomCre8tive Жыл бұрын
by the way thank you so much brother. if u can help me with mailchimp 4 wordpress lmk
@preppynino3836
@preppynino3836 3 жыл бұрын
tank you brooo , one question how to make custom theme of wordpress compatible with elementor ?
@TechiePress
@TechiePress 3 жыл бұрын
Have you checked out the hello theme - elementor.com/hello-theme/ it is a nice benchmark?
@preppynino3836
@preppynino3836 3 жыл бұрын
​@@TechiePress tanks too answer me . yes i have checked but the question is that can i modify it without having any problem ?
@TechiePress
@TechiePress 3 жыл бұрын
Yes, you can.
@TechiePress
@TechiePress 3 жыл бұрын
Yes, however, elementor works with its own design engine and doesn’t really really on the theme so much. It overwrites several sections.
@preppynino3836
@preppynino3836 3 жыл бұрын
@@TechiePress tank bro you're the best
@caroline4266
@caroline4266 2 жыл бұрын
Got lost once the coding started as it wasn't explained what we should be writing where...
@TechiePress
@TechiePress 2 жыл бұрын
My apologies for losing you. Unfortunately, there are no no-code solutions for this as yet. The coding starts so that we can create a plug-in to make the webhook. That’s why we open a new folder in the wp-contents/plugins folder. This eventually automates things.
@caroline4266
@caroline4266 2 жыл бұрын
@@TechiePress Thanks, I'm paying someone now to do it for me... much easier!
Extend WordPress REST API :: Add Fields to Posts Endpoint
16:20
TechiePress
Рет қаралды 3,7 М.
Webhooks: What They Are, How To Use Them & Why You Need Them
9:16
James Perkins
Рет қаралды 13 М.
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 4 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 70 МЛН
Exploring The Wordpress REST API & React Integration
51:32
Traversy Media
Рет қаралды 199 М.
This is why webhooks are important
7:59
Web Dev Cody
Рет қаралды 29 М.
WooCommerce Webhooks - WPQuickies
22:16
Wil Brown
Рет қаралды 10 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 47 М.
Querying external APIs with XML data using WordPress
18:18
TechiePress
Рет қаралды 2,2 М.
AJAX в WordPress. Урок 1
27:54
Андрей Кудлай
Рет қаралды 1,7 М.
Мой инст: denkiselef. Как забрать телефон через экран.
0:54
GamePad İle Bisiklet Yönetmek #shorts
0:26
Osman Kabadayı
Рет қаралды 493 М.
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН