No permission to manage posts.'; return; } $limit = 5; $args = [ 'post_type' => 'post', 'post_status' => 'draft', 'limit' => $limit, 'orderby' => 'date', 'order' => 'DESC', ]; $query = new \WP_Query($args); $posts = $query->get_posts(); if (!$posts) { echo '
| Date | Title |
|---|---|
| ' . esc_html($date) . ' | ' . '' . esc_html($name) . ' | ' . '