The main issue wasn’t with any of the server or the backend, the issue was with the function itself, mainly the parameter PHPMailer.
For some odd reason, you need to use
PHPMailer/PHPMailer/PHPMailer
or
use PHPMailer/PHPMailer/PHPMailer
at the top of the functions.php file.
Related Posts:
- Post thumbnail to append post content via ajax click event
- Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?
- How to load jQuery with Ajax in WP version 5.3.2?
- Infinite scroll without plugin using ajax
- ajaxurl not defined on front end
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- pass object/JSON to wp_localize_script
- How bad is it if I write AJAX functions using wp-load.php?
- redirect does not work in ajax function
- How to alter the text of the post “Excerpt” box label in WordPress post editor?
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- Add a preview to a WordPress Control Panel
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Changing the entire control choices using wp.customize with JavaScript
- How to Change CSS Variable value in Theme Customizer Live Preview
- Using AJAX to return search form results
- WordPress Google Maps in Custom Theme
- wp_enqueue_script being ignored in custom theme
- Getting jquery to work with custom theme
- Can’t access WordPress functions in file called via Ajax?
- How WordPress converts URL to $query_string
- Adding wp_enqueue_media(); causes problem
- How to correctly add JQuery in a WP theme?
- Toggle Sidebar Display
- How to Globally Use wp_localize_script() Ajax URL
- Why is this Ajax not working?
- Including Javascript options
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- trying to use wp_handle_upload with ajax
- Fancy-box Esay wordpress plugin fails to work on Multilingual site
- Using AJAX in wordpress theme
- WP 3.1 upgrade breaks AutoFocus+ theme
- Difficulty loading jQuery with wp_enqueue_script
- jQuery not available to other scripts
- My javascript jquery won’t work?
- Using an if statement in the theme customizer page
- populate form fields in a loop with ajax
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- Retrieve localised value
- AJAXIFY WordPress Theme Frontend menu
- How to disable controls in theme customizer?
- Using page-id-{ID} from body_class() in local dev, versus live staging
- Custom theme, contact form 7 & fast secure form doesn’t work
- Javascipt issue on custom theme
- How to make javascript work on theme options page
- JQuery undefined and Stylesheet loads in bottom along with js files
- Weirdness in jQuery supplied with WordPress
- ajax response -1 in wordpress theme
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- Why does admin-ajax load slow and what are ways to speed it up?
- Why WordPress AJAX returns undefined however it works fine when I add static url instead of dynamic function?
- How to use ajax in wordpress and sending the data without refreshing ?
- Issue on Accessing To Ajax Enqeued File to Pass to URL for Ajax Call
- pass wordpress template directory into ajax url call
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Ajax call returns 0 when add_action is inside a class in functions.php
- Trouble in enquing all js files under certain directory
- Retrieve WordPress’ the_content() with jQuery
- How do I implement jPanelMenu?
- AJAX call fails when sending JSON but works with URL style string
- loading javascript after jquery is loaded
- MapPress Easy Google Map in Jquery Tabs Problem
- I don’t think WordPress is loading jquery or bootstrap js
- Woocommerce AJAX filters option loading spiner – problem on mobile device
- how use ajax to custom page template
- how can i remove js file from my footer in wordpress
- WordPress Insert ads after every 5th post
- Why excerpt hook not working inside ajax function?
- How to change PHP variables with AJAX request in WordPress
- Theme functions don’t work as expected in partial included via get_template_part() after custom query using Ajax [duplicate]
- Embedding CodePen Calorie Script – jquery error
- How to enqueue scripts properly with ES6 webpack?
- Ajax Comment Upvotes – Votes don’t always register
- use a single nonce in three different nonce field
- change background image on scroll
- my ajax wont sent the data, please correct my code
- Custom theme admin-ajax.php 400 (Bad Request)
- wp_kses allow checkbox class and checked
- how to add jquery to wordpress
- WordPress Ajax Spitting out a page as a response?
- jQuery conflict in WordPress, works fine in HTML
- How would I get this to work – send to post from thick box
- How to avoid Ajax in wordpress theme in making mulitple request?
- WP Load post with ajax and apply isotope
- FitVid not working for iframes on particular theme install
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- WordPress custom jquery not found
- Passing a location-dependent array via wp_localize_script within a shortcode
- enqueue script if page is not equal to
- Set start page depending on screen width [closed]
- WordPress Subpages Fancybox Trouble
- Allow access to stand-alone php file WordPress
- Theme now uses require.js and enqueue script no longer works
- can’t add EVENT LISTENER to a element
- Which function(s) to build a paged HTML table
- Ajax button “Load more” is not loading correct language version posts for logged out users
- jQuery Snippet Not Working on WordPress Site [closed]
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)
- WordPress Includes mejs 404 error