Dismiss Admin Pointer Temporarily

You can override the action wp_ajax_dismiss-wp-pointer and user your own version of the function wp_ajax_dismiss_wp_pointer. add_action( ‘wp_ajax_dismiss-wp-pointer’, ‘override_ajax_pointer’, 1 ); function override_ajax_pointer() { // Your version of the function wp_ajax_dismiss_wp_pointer } This is the same technique used in this Q&A: Display custom list of tags in post/page editor with hooks and learned in this SO … Read more

Submit form to db

You are serializing your form data before posting it to your PHP function, but you do not unserialize it at the other end. Therefore your check for $_POST[‘attend’] == ‘yes’will always fail. Try the following (untested). function eventAttend() { $fields = array( ); parse_str( $_POST[‘data’], $fields ); if($fields[‘attend’] == ‘yes’) { global $wpdb; $wpdb->insert(‘wp_event_attendants’, array( … Read more

Is there some jQuery conflict here?

If I click on the large button on the bottom of your page (the one in your first screenshot), then your page is called with the parameter ?paged=2. If I call your page directly with this parameter, I got the following JS error TypeError: $ is not a function From the source of your page: … Read more

How to add Ajax to the default widget calendar to support next/previous months loading?

Interesting task indeed. Here’s what I would do: Create my own plugin with a widget. You can always use plugin boilerplate or widget boilerplate as starting points. My widget would look like the default calendar, except it would also have the ‘prev”https://wordpress.stackexchange.com/”next’ links, as you mentioned. I would then copy-paste and adjust the get_calendar() function … Read more

Not getting an ajax readystatechange on my page

Based on the comment by Ralf912 I tried to find out what the console and devtools in Chrome as all about. This debugger made clear what is wrong with my script, it’s not a WordPress specific problem, but in case others think it is I’ll explain. It may be that WordPress has set up an … Read more