Register Now


By registering, you agree to the Terms of Service and Privacy Policy.

Login

Forget


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add question

Please type your username .

Please type your E-Mail .

Please choose an appropriate title for the question to answer it even easier .

Please choose the appropriate category so others can easily search your question.

Please choose suitable Keywords Ex : question , poll .

This question is a poll ? If you want to be doing a poll click here .

Browse

Anonymous asks

Do you need a video to description the problem better ?

Choose from here the video type .

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs EX : 'sdUUx5FdySs'.

Notified by e-mail at incoming answers.

By asking your question, you agree to the Terms of Service and Privacy Policy.


x

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
x
  • Login
  • Add Post
  • Badges
  • Contact Us
Ask a Question
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
  • Login
  • Add Post
  • Badges
  • Contact Us

wptricks

  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

ajax

Home/ ajax

actions – admin-ajax.php calls fail if referrer is sent with 500

Question
calling admin-ajax.php via jquery ajax calls were failing from my site but postman calls to the same url were successfull. After some looking at headers it seems that the referer being set is the difference that calls the failure (500). Wha
0
lathomas64 19 hours 0 Answers 0 views

Is there builtin way to use protected AJAX endpoint?

Question
Usually I declare "protected" endpoints as this. So logged in users can use this endpoint. add_action( 'wp_ajax_my_action', 'my_action_callback' ); Is there a way to make it only accessible to administrators (and not other users)?
0
ezmunnn0fo 3 weeks 0 Answers 0 views

plugins – Strange admin-ajax / CSS / $_SESSION issue

Question
TLDR: I'm generating a random token on a front-end form and storing it in $_SESSION to later retrieve by the ajax script. THE ISSUE: The code retrieved by the ajax script does not match the one generated b
0
Elsnare 4 weeks 0 Answers 0 views

php – Display WordPress search results based on the selected Sub-Category

Question
I'm trying to create a search using dropdowns in WordPress. I've got two dropdowns, 1 - Parent Category and 1 - Sub-category. The Sub-category will show automatically based on the selected Parent category. My goal is to have the 2 dr
0
ZUH. 1 month 0 Answers 0 views

theme development – Woocommerce AJAX filters option loading spiner – problem on mobile device

Question
I've got quite weird problem. I built product filtering options, sometimes the server is slower so I wanted to add a loading spinner while you wait for the results. I only managed 50% because it works on desktop browsers and, unfortunately, nothing shows
0
kamilk007 2 months 0 Answers 0 views

Using some Loop or repeatable fucntion in AJAX and PHP to reduce repeatability

Question
I am having a code, in which textbox border color changes, if values exist in wordpress database table. Briefly, if match1 textbox value exist in table:xrd_references, column:ref_code, then the match1 t
0
Dheeraj Kumar 2 months 0 Answers 0 views

Ajax call on new site with jupiterx theme getting 400 response

Question
You will need to use and pass a nonce when accessing admin-ajax Enqueue script with nonce: $params = array( 'ajaxurl' => admin_url(
0
Geoff_S 2 months 0 Answers 0 views

WordPress responds to the ajax request with readyState 1, 2, 3 before responding with 4

Question
readyState= 1 this.status= 0 readyState= 2 this.status= 200 readyState= 3 this.status= 200 readyState= 4 this.status= 200 These are the responses I get, and in the end it finally responds with 4 and 200. My php function just echo
0
Tom J Nowell 3 months 0 Answers 0 views

Merge PDF files from post custom fields(ACF) into one PDF file and respond back the created PDF file, WordPress(AJAX Request)

Question
I am using Advanced Custom Fields plugin(free version) for attaching 3 different pdf files to a single post. After displaying a list of posts on a template, with a button click I am making an AJAX Request to get the files of all displayed posts.
0
Clirim Kastrati 3 months 0 Answers 0 views

plugins – Jquery POST Ajax Return null data in wordpress

Question
I really need help on this one. I've been looking at it for hours and been getting nowehere. I am working with ajax in WordPress and this is kind of my first time doing so. It's always return null data This is Jquery Code:
0
Ahmed java 3 months 0 Answers 0 views
1 2 … 5
  • Recent
  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means that your website is unable to connect to ...

    May 30, 2021
  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY FOR $29 Onitir is a Modern & ...

    September 18, 2020
  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

    March 19, 2020
  • Tabula – Art, Music & Language School

    Tabula - Art, Music &

    Tabula – Art & Language School WordPress Theme Tabula is a Multi-Purpose WordPress Theme for all kinds of ...

    March 19, 2020
  • Mega Posts Display for Elementor – Premium WordPress Plugin

    Mega Posts Display for Elementor

    Welcome to Mega Posts Display for Elementor. With this awesome plugin for Elementor you can create a posts layout ...

    March 19, 2020
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Recent

  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means ...

  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY ...

  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

Popular Questions

  • 404 error - Page not

    ...

  • How to echo the_excerpt without

    In the code snippet below, I trying to get the_excerpt to be ...

  • How to update meta fields

    I have an app written in Delphi and Indy components for Windows ...

Copyright 2019 WPTricks - WordPress Tips, Tricks and Hacks | Privacy | Terms

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.