All Questions
6 questions
0
votes
2
answers
554
views
Woocommerce Multisite global search how to mod ajax function?
I created an installation of my multisite ecommerce to differentiate the men's and women's departments. Often, however, it happens that in the men's department they do research related to women's ...
0
votes
0
answers
697
views
Ajax global variable is not getting saved (returns null)
I am trying to modify a global variable $lath , It is a shortcode. This is where i have defined it.
function listing_order(){
global $lath;
$lath = array('email','phone');
foreach ($lath ...
1
vote
1
answer
3k
views
Ajax Pagination on Ajax filter
Following this great tutorial I've implemented Ajax pagination with scrolling: https://www.billerickson.net/infinite-scroll-in-wordpress/.
Now, I've added a second Ajax call to filter the posts by ...
0
votes
1
answer
2k
views
Retrieve post in AJAX Callback
I have a JS file that triggers a PHP callback file. The PHP file is supposed to work on the Post that is currently opened (wp-admin/post.php).
I do not want the JS file to pass the post id though ...
0
votes
0
answers
331
views
How to load post_meta for custom post type via Ajax
I'm trying to load a YouTube video via ajax outside the loop. I have it working on regular pages, but not anything loaded via ajax. A user would click a button, then a YouTube video will load via ajax,...
4
votes
2
answers
2k
views
Registering AJAX callback function that is part of a class without instantiating the class in function.php
I'm not even sure if this is possible. But nevertheless I thought of asking. I'm in habit of wrapping/grouping AJAX calls for a particular need within a class. See below.
class my_class {
...