Trim AJAX Calendar Future POSTS to be valid

// Trim AJAX Calendar Future POSTS to be valid
add_filter('get_calendar', 'customize_calendar_output');
function customize_calendar_output($calendar_output) {
    $calendar_output = str_replace('<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '">', '<table id="wp-calendar">', $calendar_output);
    return $calendar_output;
}

Source: 10+ Useful WordPress Code Snippets

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.