You could just use a RewriteRule to your .htaccess above the regular permalink rewrite rules:
RewriteRule ^ajax$ /wp-admin/admin-ajax.php [L]
Now send your AJAX requests to example.com/ajax
, and never miss core changes to that file after upgrades.
Related Posts:
- How to get Ajax into a theme – without writing a plugin?
- WordPress AJAX in header.php
- Knowing blog name using blog id
- WordPress ajax insert and delete if already inserted delete the post id stored in custom table
- Adding admin-ajax.php to the frontend. Good or bad idea?
- Theme making direct ajax calls to theme folder
- Workaround AJAX calling without directly calling WordPress backend (Admin dashboard) because it is restricted to the end user (the public)
- How to change background color in the Notepad++ text editor?
- What are all the available parameters for query_posts?
- How can I version the main CSS file?
- Is having multiple theme customizers for different pages possible?
- Two instances of WordPress with different URLs and themes
- Is “Featured Content” in Twenty Fourteen done with a plugin, or is it native in WP4.0?
- How can I use WordPress as a job board ? (but free)
- Can I Download a Free WordPress Theme, Edit it and Use it?
- How to create a theme option-menu page to save user values
- Are custom inner theme folders in any way overridable by child themes?
- How to put a banner ad between post 1 and post 2 on homepage only
- How to reverse the pagination numbers of an archive?
- In which directory do I find a specific HTML code of my wordpress page? Some of it seems to be missing after checking all pages [closed]
- Why do Trackbacks/Pingbacks not appear below my posts/pages?
- Extra themes – ok or bad?
- Theme Customizer – How to create a sub panel
- Setting a static home page and blog page without using the settings
- Can’t Install Child Theme “The parent theme is missing. Please install the “Default” parent theme.”
- Use a different template/theme if mobile only on home page
- Can i have a single wordpress site to have two themes ( one for pc other for mobiles)
- Translated my theme (translation not showing up)
- How to use get_page_by_title() with qTranslate?
- Changing $before_widget for certain widgets
- wp theme.. Could not create directory
- Multi-level page hierarchy
- How to conditionally display widgetized areas in theme customizer?
- How prevent someone from opening my theme directory
- loss of theme options while site deployment in production
- How to install WordPress theme and configure it? [closed]
- How do I get rid of or change the footer in my child theme?
- How can I make some themes usable only by admins?
- Categories gone after changing theme / demos [closed]
- Angular integration with homepage
- Own Theme Customizer displays error message when saving, saving still works
- 1 Database for multiple WordPress themes
- Page has a parent and $post->post_parent returns 0
- How to create different navigation for registered users in WooThemes Canvas?
- Selected template is not respected for home page in WordPress
- How to make Additional css changes global all across the web pages on WordPress website?
- WordPress without a theme – help!
- How to restore file or theme?
- A /proc folder in wp-content?
- how do i in ignore/disable/delete a javascript call from parent in child theme?
- How to install themes with the demo content?
- Jetpack CSS .screen-reader-text breaks mobile menu [closed]
- Error when using ‘continue reading’
- How to update theme to specific version
- Child theme’s stylesheet cannot load [closed]
- can’t see aditional themes in control panel
- Configure new installed WordPress in live server
- What’s the default order used by WordPress to load CSS files?
- Where does WordPress get the theme name from to check for updates?
- Hi everybody, I have a problem of search box
- How can I remove all traces of a theme?
- Changing an image in header.php
- Updating WordPress Theme Files
- A thin line between native wordpress bahaviour and 3rd party themes
- Display Pointer only once?
- Will I lose the pages I’ve created within a default WordPress theme when adding a new theme?
- Multiple sub directories for theme template pages
- How to get the theme directory URI?
- From where wp ecommerce is loading plugin theme files?
- Making first post wider than other posts on home page(default)
- My blog suddenly can’t find my stylesheet?
- Twenty Ten Theme: Replace the Logo by a picture without moving the code
- How to fix Scrape key check failed on WordPress VPS?
- Removing a widget via theme editor
- How do I get the featured image to sit below the header in the twenty nineteen theme?
- How to use my .mo file in the Divi child theme instead of file in a parent /builder directory?
- How to fix Gutenberg with SiteOrigin page builder deleting content when editing
- How do I remove search bar that isn’t a widget?
- TwentyFourteen Theme : Changing grid layout
- Edit a template while still keeping a Landing Page on the main address
- How to allow users to switch to the child theme from front end without plugin?
- Change whole theme depending on resolution
- post_prev & post_next within same category
- Costum Theme template directoy url problem
- How to remove the option data of a theme when that theme is removed?
- How to find out which template the HTML content comes from?
- Resetting Themes Folder to Default
- What is the general cut-off date for reviewed themes in the WordPress.org repository?
- Convert theme to be based on Bootstrap?
- Include root files into header files
- Commenting in CSS (//) equals “none”? [closed]
- Static posts page is not working
- Cannot use some themes within Managed WordPress of Go Daddy [closed]
- How to track your theme usage on the internet?
- How to add Company Logo to Chosen Theme
- What security risk is not having “default” theme?
- Absolute and relative paths
- Get header/footer list for a theme
- Help!!! Old theme doesn’t load scripts and conflitcs with plugins
- How to remove pop up on website (css changes not visible)?