are you logged-in with all browsers? since
add_action('wp_ajax_contact_form', 'ajax_contact');
only works for logged in users,
so to fix it you need to change it:
add_action('wp_ajax_nopriv_contact_form', 'ajax_contact');
if you want your function to work for visitors as well as users.
Related Posts:
- Elegantly using JavaScript on widget admin forms
- jQuery UI inside widget on admin page
- WP_enqueue_script() loads them always in wp_footer()?
- How do I pass the id of my widget to javascript in the form function?
- Access Customizer widget instance form
- wordpress widget missing jquery
- Using AJAX in WordPress Widget
- Widget won’t work due to old JavaScript? Any ideas how to make it work? [closed]
- Cross-Origin Read Blocking (CORB)
- syntax error: unexpected token <
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- My javascript is returning this error: $.ajax is not a function
- ajax jquery simple get request
- jQuery AJAX cross domain
- Set timeout for ajax (jQuery)
- jQuery AJAX submit form
- How can I upload files asynchronously with jQuery?
- Adding images to a Bootstrap Carousel with AJAX
- jQuery Ajax POST example with PHP
- Refresh/reload the content in Div using jquery/ajax
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- Download a file by jQuery.Ajax
- Ajax success function
- Executing Javascript When a Widget is Added in the Backend
- Enable Submit Comment Without Page Reload (Using Ajax)?
- Enabling jquery when dragging available widget to sidebar area
- Ajax Load More Posts in Category Page
- How to refresh Theme Customizer after change color inside wpColorPicker?
- Ajax call does not activate callback function
- How do I rebind event after widget save
- How to listen to color changes on the color picker?
- Ban certain widgets from certain sidebars
- Widget “Save” resetting jQuery hidden fields
- Trying to get single posts to load on the front page via ajax
- jQuery does not work in widget backend
- Drag and drop multiple file upload using Ajax WordPress
- Turn jQuery.ajax() request into XMLHttpRequest (vanilla JavaScript)
- WordPress AJAX Call Not Return Result
- How to create popup same as wordpress popup feature
- Display notification only once
- Access/update database with jQuery
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- cannot drag and drop widgets since wordpress 3.2.1
- wp_ajax unauthenticated and authenticated
- WordPress ajax function parameter value not being passed
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- How can I use AJAX to save/update a widget form?
- Widget code is not working on WordPress.com Hosted Blogs
- Ajax return code 400
- WordPress customizer refresh screen after save
- How to test nonce with AJAX – Plugin development
- Ajax Modal Flickers When Opened Multiple Times
- Wrap the widget content with a div and get the widget title outside? [closed]
- Contact Form 7 – Uncaught TypeError: wpcf7.initForm is not a function [closed]
- List of JS Events for Widgets?
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- How to add a do_action on refreshing of WP customizer?
- How to search using ajax for exact phrase or words in an input field?
- Setting value of session with Ajax not working
- How can I inject options into an select tag inside the widget form?
- How i can widget ID get after drag for wordpress with jquery?
- Issue understanding and using WordPress filters and actions
- videopress videos are not displayed when loading the content with ajax in a lightbox
- WordPress Ajax Call inserting data but success response false
- How to return multiple arguments from AJAX callback function
- Unable to load “wpColorPicker” on theme customize page
- WP AJAX API with JS file
- Accessing an API with jQuery and AJAX
- Is there some jQuery conflict here?
- Jquery checkbox -show posts with checked tags
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Uncaught TypeError: Cannot read properties of undefined (reading ‘message’) [closed]
- javascript onClick update user_meta from jquery.ajax
- Running JavaScript after using WooCommerce Filter Plugin
- How to use wp_ajax_set_post_thumbnail?
- React to AJAX adding to the page
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- Multiple Notifications SetInterval
- number of posts with “Load More”
- Orderby post__in Not Working Correctly?
- Ajax post doesnt call succes after got the response
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Get ajaxForm response value
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- Loading scripts only if a particular shortcode or widget is present
- Slider from different widgets
- Widget Admin page and Javascript enqueuing
- Retrieve customizer value using ajax or customizer api and print the value in theme
- 500 (Internal Server Error) of external php file
- Displaying contents of a tab
- WordPress Javascript Widget jQuery Dependency Issue
- Ajax, jQuery and WordPress
- Dynamic Gallery
- widgets in contacts only
- Add text to Text Widget using Javascript
- Load css classes after using ajax calls
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- WordPress Ajax send response on every iteration of a loop
- AJAX call not initializing for non-admins in WordPress
- iOS and ajaxComplete