WordPress AJAX Call (Step-by-Step Guide)

preview_player
Показать описание
Using AJAX with WordPress can be a bit daunting if you don’t know where to start.

The WordPress Codex is not much help. It assumes you already know everything about WordPress. :)

If you’re new to AJAX or if you are just trying to figure out how to use AJAX with WordPress, I gotcha covered!

You'll be an WordPress AJAX Ninja in no time!

I also made a companion video on How to Make a Secure WordPress AJAX Call (with Nonces):

AJAX Tutorial Page & Example Files Download:
Рекомендации по теме
Комментарии
Автор

Your guide is AMAZING !!! Thank you so much, this is the only video that explain clearly how to do that.

roeeangel
Автор

You are going to heaven 🙏 Thank you very much!

danielkndn
Автор

you helped me understand ajax after years of struggling

tanxyrogue
Автор

Thanks <3 this was pretty helpful !!!

tahirhaithem
Автор

Like, commented and suscribed! Your work is awesome!

gonzalog
Автор

very very very very helpful. keep going and uploading videos like these.

taqimushaidi
Автор

Hi, i want to execute a shortcode (which yeilds a chart) when a button is pressed. how do i do it? i have been struggling for a couple of days now

vividlearner
Автор

Can we use this for making the ajax call for ACF repeater fields?

acidfather
Автор

how to create a button that calls a custom ajax code for example when clicking that button, i want to call a wp rest api

sahiku
Автор

I did that but the ajax function call the short+code and retun the html, but not refresh the page, why? I need to do someething after call the shortcode function?, the shorcode have parameter and I call cat="'. $valuebyparameterajax.'"]'), but not refresh the page, thanks

thomasorta
Автор

Hi sir, can you help me fix my problem in importing template from starter template, Because I cant import template it says: " We could not start the import process due to failed AJAX request and this is the message from WordPress: Error: 0 error "

vencesgrapikatv
Автор

where did you get the information in the functions.php before you pasted the code in it?

DopetheKid
Автор

please what is adding tei-ajax-post=1 to the end of my URL, i was able to discover it on google analytic

Olamilekanfinal
Автор

well ok, this override banana with apple i can do with simple js, would be much better to show how exactly you get something like post content on click or some post data... because i see your example of ajax but when thinking how to get some post data i'm stuck ...

VADIMAKE
Автор

Download isn't working giving me a bad page 404

TristanCodes
Автор

well sorry, I can't understand the positive comments here^^ in my opinion the explanation in this video is very superficial - for example, you don't explain why you need the "action" property (i don't know it why?), you don't explain why you write "wp_ajax_example_ajax_request", and you don't explain how it works^^

kevin_neugebauer
Автор

Kindly speak English in neutral accent so as to understand easily.

ifelsedev