My initial thought was correct.
I thought it might have something to do with not being able to access the
ajaxurl or so or not having the proper user rights.
I had overlooked a user redirect (which was defined on an incorrect place), hence why I missed it and thus a user got redirected to the correct page since he/she is not allowed in the admin. All I need to do is find a way to create an IF for the admin ajax url.
Related Posts:
- Javascript : array.length returns undefined
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- How to Use JSON With AJAX?
- I want to import my Json file into a custom made display-modal. How do i link my Json file?
- oEmbed Video in Modal
- Parse wordpress blog data using json api and ajax
- JavaScript sleep/wait before continuing [duplicate]
- JSON parsing error syntax error unexpected end of input
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- How do I link a JavaScript file to a HTML file?
- What does [object Object] mean? (JavaScript)
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- How to set time delay in javascript
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- jQuery equivalent of JavaScript’s addEventListener method
- data.map is not a function
- Nested JSON objects – do I have to use arrays for everything?
- Uncaught TypeError: Cannot read property ‘length’ of undefined
- Adding an onclick function to go to url in JavaScript?
- Checking a Url in Jquery/Javascript
- My javascript is returning this error: $.ajax is not a function
- Best way to store a key=>value array in JavaScript?
- Javascript Runtime error: $ is undefined
- Failed to load resource: net::ERR_FILE_NOT_FOUND loading json.js
- JavaScript: filter() for Objects
- jQuery AJAX cross domain
- JavaScript runtime error: ‘$’ is undefined
- When and why to ‘return false’ in JavaScript?
- JavaScript Loading Screen while page loads
- Jquery Ajax Posting JSON to webservice
- Loading local JSON file
- TypeError: $.ajax(…) is not a function?
- Format date to MM/dd/yyyy in JavaScript
- jquery loop on Json data using $.each
- How is JavaScript .on() method defined?
- Uncaught TypeError: data.push is not a function
- Rotate image with javascript
- How to convert selected HTML to Json?
- Javascript isnull
- How to make a simple image upload using Javascript/HTML
- Javascript TypeError: Cannot read property ‘indexOf’ of undefined
- JQuery: $.get is not a function
- How to get client’s IP address using JavaScript?
- SON Post with Customized HTTPHeader Field
- javascript function wait until another function to finish
- Simple throttle in JavaScript
- How to read data From *.CSV file using javascript?
- Enable & Disable a Div and its elements in Javascript
- jQuery posting JSON
- how to loop through JSON array in jQuery?
- SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- How to display raw JSON data on a HTML page
- Convert array to JSON
- How can I expand and collapse a using javascript?
- How to filter JSON Data in JavaScript or jQuery?
- How to call a webservice method from an html page [javascript] with out refresh the page
- Javascript – ERR_CONTENT_LENGTH_MISMATCH
- The ‘describe’ keyword in javascript
- How can I remove all CSS classes using jQuery/JavaScript?
- How to add a button dynamically using jquery
- Complex JSON nesting of objects and arrays
- Uncaught SyntaxError: Unexpected token with JSON.parse
- How can JavaScript save to a local file?
- $(document).ready(function() is not working
- Defining a HTML template to append using JQuery
- I want to enqueue a .js file to my child theme
- Is there a way to enable Cross-Origin Resource Sharing for WordPress’ ajaxurl?
- How to get attachment id as soon as it is uploaded through media uploader in jquery?
- Add tinymce buttons to caption textarea in media uploader
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- How to get the path to current theme, but from a JS file?
- Move WordPress native javascript to bottom of page?
- Add custom shortcode button to Editor
- RequireJS in custom theme. Working Example
- Infinite scroll / lazy loading with NextGen Gallery [closed]
- Ajax call does not activate callback function
- How to handle multiple instance of “send_to_editor” js function
- Using ‘$’ instead of ‘jQuery’ in WordPress
- jQuery UI Datepicker not working
- Automatically decrease font size for long words
- How to get a jQuery script to run on a page?
- Defer Parsing of Scripts
- Modify Custom Field in Media Library using JavaScript
- AJAX returns response 0
- Draggable item in custom gutenberg block
- Including javascript for a shortcode
- Javascript included but alert() function not working
- Asynchronous Javascript Loaders
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- Trying to get single posts to load on the front page via ajax
- Ajax not firing properly using Firefox, but works in Chrome
- wp_enqueuescript won’t load in footer even with true value set?
- Unable to run jQuery script in my template file
- jQuery Hoverintent plugin in TwentyEleven Menu [closed]
- Get ACF value in external jQuery document
- Execution of JavaScript on save post
- How wp_enqueue_script works?
- Using wp_ajax and wp_ajax_nopriv hooks