Help with AJAX request

The code you provided is on the right track, but it’s possible that the issue you’re facing is related to WordPress’s admin-ajax.php handling. Here’s how you can modify your code to make sure you stay on the same page after submitting the form: Change the form action to the current page instead of admin-ajax.php. Form: … Read more

jQuery – Make multiple field Required with warning at WP Admin backend

I fixed the issues by replacing default HTML warning message using function setCustomValidity(). The default HTML warning message is issued at invalid field so that users know where to correct: // HTML: <input type=”text” name=”post_title” size=”30″ value=”” id=”title”> <input type=”text” name=”price” size=”30″ value=”” id=”price”> // jQuery: // Make post title field required – when it … Read more

Enqueued jQuery not working

Someone answered, but the answer has since disappeared, which is a shame because it lead me to the solution. What ended up working was jQuery(document).ready(function ($) { setTimeout(function () { $(‘div.edit-post-post-schedule span’).text(‘Birth Date’); $(‘div.edit-post-post-schedule span’).css(‘font-weight’,’bold’); }, 250); }); I’m still a bit fuzzy on why it worked, but I will take the win!