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
- How to set time delay in javascript
- jQuery equivalent of JavaScript’s addEventListener method
- Uncaught TypeError: Cannot read property ‘length’ of undefined
- Failed to load resource: net::ERR_FILE_NOT_FOUND loading json.js
- JavaScript: filter() for Objects
- JavaScript runtime error: ‘$’ is undefined
- When and why to ‘return false’ in JavaScript?
- JavaScript Loading Screen while page loads
- How is JavaScript .on() method defined?
- How to convert selected HTML to Json?
- How to get client’s IP address using JavaScript?
- Simple throttle in JavaScript
- Enable & Disable a Div and its elements in Javascript
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- How can I expand and collapse a using javascript?
- How to filter JSON Data in JavaScript or jQuery?
- The ‘describe’ keyword in javascript
- Uncaught SyntaxError: Unexpected token with JSON.parse
- 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?
- RequireJS in custom theme. Working Example
- How to handle multiple instance of “send_to_editor” js function
- Modify Custom Field in Media Library using JavaScript
- 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?
- Get ACF value in external jQuery document
- Execution of JavaScript on save post
- Prevent five different copies of jquery from being included on every page
- Is placing stuff in page text edit window bad form?
- Add colorpicker to featured image
- Gravity Forms not loading under https, jQuery is not defined
- Add a Fancybox automatically to post type “post” images
- Auto-detect javascript errors and warn theme user
- combining js scripts from a js newb [closed]
- Enqueuing javascript files
- WordPress customizer refresh screen after save
- Creating multiple enclosing shortcodes and fixing JS issues on click
- Heartbeat API: How to access data already enqueued?
- Can’t load a class into WordPress post editor’s content field
- Implementing lazy loading in homepage posts instead of pagination
- How to get those data using with ajax json?
- Correct way to write jQuery functions in WordPress
- Intergrating agile carousel to wordpress: how to write the ajax_callback function
- Using bootstrap-slider and bootstrap-switch in wordpress admin panel
- Trouble with WordPress Ajax Login System – 302
- Using WP_Query to grab custom meta values, foreach to json object
- How does WordPress handle HTML Tables interaction with jQuery
- Javascript stopped working [closed]
- Why load JS through the CMS framework? [duplicate]
- Problem passing id-specific objects to javascript via wp_localize_script
- url – ajax loaded but no JS
- Callback After WordPress Customizer Complete Loading
- Create special WordPress slideshow with “jquery.cycle.all.js”
- Close Fancybox, sumbit form data and redirect
- How to enque js script in footer that are not in .js file?
- Properly embed javascript into WP (using function.php) – doesn’t work?
- Nested Gallery Shortcode INTERMITTENTLY working
- Disable Cloudflare Rocket Loader for jQuery javascript and make it load first
- How to keep HTML form field that is conditional hidden with javasript hidden after page reload?
- Accessing javascript in multiple files [closed]
- Issues loading Jquery on WordPress website
- Custom AJAX form not working async
- Is it OK combined wp-include js, jquery, css? [closed]
- Including Older Version of jQuery for IE7/IE8
- Problem adding MP3 attachments to a jPlayer playlist
- How To Include JavaScript Files Only In Single Posts?
- Jquery not working
- A carousel slideshow plugin in JavaScript
- JS behavior differs depending on page tree [closed]
- Get with jQuery the value of an ACF field
- Theme customisation – how to store javascript externally when it utilises php variables?
- jQuery for Fade Preload Causes My Site Favicon to Disappear from Tab of Browser
- Get ajaxForm response value
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- onclick jquery function not working in wordpress header file [duplicate]
- Add a jQuery snippet for sepcific user role
- Adding scripts before plugins scripts
- JQuery and Javascript to pan image
- jQuery search function not running in WordPress but running locally (fiddle)
- Masonry – Can’t Find Variable imagesLoaded
- How to add JS snippet before closing tag?
- Clear custom field when new tag is added
- Are you sure popup on Contact Form 7 [closed]
- javascript not loading in wordpress
- JS file not loading [closed]
- Carousel Hover Image
- Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP
- How to Javascript/jQuery
- shortcode execution when the page is opened
- Sending jQuery variable to php function