I’ve used this method in quite a few applications until I found out about using admin-ajax.php
, so pretty much simply put, no, I don’t think it will cause any problems.
Although I do recommend using the method that WordPress describes! In my opinion it is much easier and works nearly the same (or better) as the method you are describing.
Related Posts:
- WP AJAX is not working, always returns 0
- template_redirect or admin-ajax.php?
- 400 Bad Request, in wordpress theme development, wp_ajax
- Data not insert and update through ajax and jQuery in admin page?
- AJAX button with success callback. (Titan Framework)
- Best practice for plugin: always detect admin-ajax call?
- Get cat parameter from admin-ajax
- 400 Bad Request and illegal invocation in wp_ajax based on processData set to false or true
- ajaxurl not defined on front end
- Why does WordPress add 0 (zero) to an Ajax response?
- Plugin API for easy admin list table generation, handling & exporting of MySQL tables?
- Saving data-URI to media library
- Nonces can be reused multiple times? Bug / Security issue?
- How can I run AJAX on a button click event?
- Completely remove WP_Admin_Bar for specific user roles
- API to trigger prompt on leaving page
- Show message on wordpress admin dashboard
- Empty POST data on server on AJAX request using Angular $http
- wp_localize_script $handle
- Is it save to require plugin.php early to be able to use get_plugin_data() earlier?
- WP Cron doesn’t save or in post body
- How to enable users to down-vote in this simple voting counter (that uses the post meta)?
- Filters ‘request’ and ‘parse_query’ not firing in sites.php nor link-manager.php
- URLs of plugin resources?
- Problems with removing admin bar
- Plugin Settings not Saving on Ajax re-ordered table
- Check if I am in the Admin Panel (wp-admin)?
- Using Ajax call in jQuery doesn’t work in widget
- Timeout on Admin-Ajax?
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- How to redirect to action on custom page within admin section
- Ajax in WordPress – path issue
- Ensure function has completed before allowing another Ajax call
- Can I individually style items in the backend widget list?
- Issue plugin commands in admin settings page
- include wp-blog-header not working on MAMP
- Programmatically modify an admin page UI of a WordPress site from my WordPress plugin
- Slow WP_query due to nested wp_query. Need Suggestions
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- Global State During an Admin Post
- Woocommerce checkout update totals with datepicker
- Including the necessary functions for a custom ajax registration form
- Render content after post title in wp-admin
- How can I rewrite a URL to pass requests to a custom method via AJAX? (I can’t use admin-ajax.php)
- get post attachment using ajax
- Dashboard – get status and position of metaboxes and pass them to ajax method
- how to search users by ajax live search
- What should happen when a WordPress Plugin is activated across the network (Network Wide Activation)
- Is it possible to restrict all admin pages except theme customisation and storefront using plugin?
- Storing data in wordpress database from ajax call from different website
- Create tabs in admin options page from custom post type loop
- Creating Admin Plugin – Content of a page is displayed at global scope as well
- Issue with contextual help overwriting existing content
- How do I link to a php file in my plugin directory?
- WordPress Admin Login Custom Logo
- How to create custom settings page for custom plugin
- Remove entire [$key] from array stored in custom field using Ajax – unset($array[$key]); not working
- Ajax is not working in a loop
- How to get error object returned by wp_create_user
- Wp-admin Custom User Management
- Filter for admin (back end) ‘reply to’ comment
- Setting a JSON web token from a secondary api as a secure cookie on WordPress
- Redirect in WordPress plugin
- How do I get rid of my inclusion race-condition on wp_enqueue_script
- Issues Updating Post Meta with AJAX (Seems simple but cannot figure it out)
- How to add custom view links to wp-admin/post.php?
- AJAX call to admin-ajax.php by subscriber returns home page
- Ajax function is not working on WordPress
- About a programming language starts with [closed]
- Workflow for new importer plugin – your advices?
- AJAX request not routing through proxy
- How do I duplicate a single post, with all its properties, and save it as a different post?
- check_admin_referer()
- Ajax on the Administration Side of plugin – returns 0
- Ajax action has 200 status but response of No response data available for this request
- GET request return value as error instead of success
- Trying to run a Ajax request from a checkout form in woocommerce via a custom plugin
- ajax stopped working when not logged in wordpress
- ajax response strips multidimensional array and unable to decode
- Rate limiting ajax requests in WordPress
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- $_SESSION inside php function executed by AJAX
- Two same AJAX calls – one is working, other doesn’t
- How to handle ajax Request in a complex-structured plugin?
- How to get values from Tinymce visual editor popup?
- Stop unauthorised file access
- PHP includes with AJAX actions
- Ajax call not working with
- WP Ajax on page load not working on bluehost but was working on Godaddy
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- Issue with iframe in TinyMCE
- Can’t get query string in ajax call
- admin page passing $_POST variables to itself
- An adiitional function fires on my AJAX submit
- Fatal error: Call to a member function query() on a non-object in my ajaxpage
- Page reload occurs before request finishes
- modify buddpress adminbar only in admin pages
- How to change the headline title for an admin page in a plugin?
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- How do I display and edit other posts within the ‘Edit Post’ area of Wp-Admin Dashboard