AJAX in WordPress using admin-ajax.php

preview_player
Показать описание
In this video from Zac Gordon's short course on AJAX in WordPress, Zac introduces how AJAX in WordPress works.

Course

Source Code
Рекомендации по теме
Комментарии
Автор

So I look around the web but eventually come back here. This man is the best.

seniorvikita
Автор

Where should I create hook and ajax function please explain file also bcz I am new in WordPress

GuptaTreePoint
Автор

Great stuff! Would be better if your face wasn't blocking the code ...

ahmedmusawir
Автор

Dude, thank you! I was given a project that has been hell. lol. This was very clear and easy to follow.

edhead
Автор

Dude you speak so fast (compared to other tutorials) I tought the video was at 2 velocity, that's amazing. Thanks for the video!

hello_mandi
Автор

I totally do not understand what i need to put into my url like i have been trying this for serval months and it still does not work. I followed 1000 tutorials they all say the same but no results

Moreno
Автор

Wow perfect! I'm recently thought, that finally, I've started understand how does AJAX works in WordPress after I've done some small features in different projects. Dude! Excellent explanation, great job!, but now I h8 u!)

sashasasha
Автор

Why doesn't WordPress have all of this setup by default? Even when I've used JS editors plugins I kept running into problems trying to get an ID to fade in/out and update/change content...never quite worked hence I'm here trying to figure out why. I'm using Elementor so that could be causing problems.

linkupify
Автор

The second ajax call sends me to wp-admin/admin-ajax.php page. How to redirect to original page (where from 1st ajax call was sent) and make 2nd ajax call from there with new variables?

kornelijekovac
Автор

This video would have so much more value if you demonstrated it with a simple example.

kristijanluksic
Автор

Nice teaches, thank you, Zac (bro:). Also quite adequate cultural background is being sported behind ya! :D Keep going!

iwanwilaga
Автор

can you put the code that goes on the plugin in functions.php file ?

damindadineshimaduwagamage
Автор

I'm having a Status Code: 400 Bad Request. What could be wrong?

cinthia
Автор

Hey there!

Excelent tutorial, it worked for me. I have one question. Is it possible to print the result into the theme (php) with echo or something like that?

guadalupeornelas
Автор

did somebody try moving his picture by dragging on screen???

muhammadfarooqi
Автор

where is the next video with the examples?

manticore
Автор

Please consider adding captions for the hearing impaired. :)

studywithrobin
Автор

just a question where should i put the localize_script?

spectreross
Автор

what font do you use when you code? I want that "f" lol

edhead
Автор

Two questions: Why address the source code in form of a plugin (wouldn't it be better to use without plugins)? Why don't you actually show the functionality in this video (getting errors when I implement your code in clean WP install)? Unfortunately this is not a method that can be easily implemented within every WP install ;(

jimderonde