Add this as well: add_action('wp_ajax_nopriv_my_action', 'my_action_callback');
. Notice the nopriv
.
It will solve your problem!
Related Posts:
- Custom column for changing post status via ajax
- How to make ajax call in wordpress in right way?
- wp-admin – save options without refreshing?
- How to create a wp admin page (for use in an ajax request)
- Redirect users away from Admin breaks ajax
- Ajax solution similar to WP Categories functioning in Admin area
- blocking the admin section (but still using admin-ajax.php)
- Ajax requests from front-end with jQuery Fancybox
- Dismiss Admin Pointer Temporarily
- Can admin-ajax.php be used for spam purposes? And if yes, how to prevent that?
- Can I rename the wp-admin folder?
- How can I control the position in the admin menu of items added by plugins?
- How to Layer 7 Load Balance WordPress Backend and Frontend?
- How to remove comments option from wp-admin bar and modify profile icon
- Add header and footer to WP backend
- How to Remove All Admin Bar Menu Items?
- Edit specific nodes in WP_Admin_Bar
- Filter Custom Post Type in Admin
- Using Image insert control in code
- Wrong canonical link on wp-admin pages
- How can I make WordPress work with a Symfony app?
- Using the loop inside admin
- Display sortable User meta column in admin panel user’s page
- wp-login.php — redirect logged in users to custom URL
- Can’t access admin dashboard with wp-admin without /index.php after it
- How to change “wp-admin” to something else without search-replacing the core?
- How can I add an extra admin column showing the word-count of a page or post?
- Which actions can update/change .php files?
- Blank page for edit.php
- Upload media file problem
- Always show same size tags for Tag Cloud in WordPress Admin
- Why should I password protect WP-Admin?
- How to change how long items are kept in the trash?
- Using /wp-admin works, using /login gives a 404. Why?
- Custom role based users are not able to access wp-admin
- How can I add ‘view mode’ to screen options for pages and cpts?
- WP /wp-admin/admin-ajax.php produces 404
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- My wp-admin stops working suddenly
- How to debug “You do not have sufficient permissions to access this page”? [closed]
- How to check if upload window came from the featured image link?
- Wrong wp-admin URL
- Stopping user deletion from running on error
- Admin search not working for any type of post
- admin_post action not usable if admin access denied to user
- Can’t log into wp-admin after migration from localhost to server
- Adding Custom Capabilites
- Can I add my own profile.php?
- Wp-admin is giving me an error “Sorry, you are not allowed to access this page.”. I do have access to the wp-admin besides the dashboard itself
- Add menu option to “New Post” menu in admin bar
- Linking table cells to network folders
- Remove bulk option row
- Admin menu in front-end
- How can I disable all external url Google in WordPress backend?
- if it possible to get all notifications from all plugins and core?
- wp-admin page redirecting to 404 error page
- Require Login Redirect to Login Page
- How to fix ob_end_flush() failed to send buffer of zlib output compression (1)?
- How to replace “Password Protected” text with icon in Admin
- 400 Bad Request, in wordpress theme development, wp_ajax
- Delete the “wp-admin” folder – what could go wrong?
- unsuccessful attempt to change domains- wordpress re-routing to old domain
- How can I limit page parent dropdown to show only author’s own pages?
- Nickname field isn’t appearing in Admin
- How to Find The Email of a WP Admin Account
- how can I change the font on Edit Post area (admin dashboard)
- Icons are missing from Visual Editor
- External HTTP API calls slowing down WordPress admin [closed]
- How to check nonce lifetime value of plugins?
- Creating custom admin panel pages without making a plugin?
- Why is my ‘export’ option missing?
- Change users.php WP_User_Query
- Use AJAX in a WordPress Plugin to Get Data From Custom Database?
- Blank page when viewing wp-admin
- Is it possible to display my theme sidebar in wordpress admin?
- Can’t access wp-admin after http to https change
- Programtically selecting image URL in Media Library modal
- wp-admin: “Sorry, you are not allowed to access this page.”
- How to access wordpress from domainB which is installed at domainA
- How to optimize the opening speed of admin panel?
- How to change the URL of sub menu page?
- Change wordpress admin home page
- Strange wp admin edit buttons issue
- Cannot access wp-admin after migration to another place
- Regular users logs in as ADMIN if Admin logged in recently
- Enable Excerpt field inside the post editor for pages
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- WordPress switch domains
- Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
- OSX El Capitan local install Maximum upload file size: 2 MB But php.ini set to 64M
- Is it possible to outsource wp-admin to another server?
- Wp mwnu not works at all
- Can’t log into WordPress after domain change
- Search box for hierarchical taxonomies in admin interface
- Custom Admin Message from external source to multiple users
- Customize a WP_Posts_List_Table class
- How can visitors redirect wp-admin to the homepage?
- Creating your own options-general.php page
- WordPress blocking polling request when signed into Admin