• Resolved DJABHipHop

    (@pressthemes1)


    <?php
    /**

    • Reasons for hiding these WordPress admin dropdowns:
    • – Simplifies the admin UI for editors or clients.
    • – Removes filters that are not needed for the site’s workflow.
    • – Reduces clutter and potential confusion for less technical users.
    • – Helps enforce a streamlined publishing process.
    • – Can save tiny bits of performance if certain dropdowns do heavy queries.
      */
    // 1. Remove "Filter by date/month" — not needed if you rarely filter by old content.
    add_filter('disable_months_dropdown', '__return_true');

    // 2. Remove "Sticky posts" filter — useful if you don't use sticky posts.
    add_filter('disable_sticky_dropdown', '__return_true');

    // 3. Remove "Post formats" filter — hides a feature many sites never use.
    add_filter('disable_formats_dropdown', '__return_true');

    // 4. Remove "Bulk actions" dropdown — prevents accidental bulk edits/deletes.
    add_filter('disable_actions_dropdown', '__return_true');

    // 5. Remove "Filter by author" — useful for single-author sites or fixed contributor teams.
    add_filter('disable_authors_dropdown', '__return_true');

    // 6. Remove "Filter by category" — hides category filtering if irrelevant.
    add_filter('disable_categories_dropdown', '__return_true');

    // 7. Remove "Filter by post status" — prevents switching views (Draft, Pending, etc.) if not needed.
    add_filter('disable_post_status_dropdown', '__return_true');

    // 8. Remove custom taxonomy filter dropdowns — cleans UI if you don't use these taxonomies for filtering.
    add_filter('disable_taxonomy_filters_dropdown', '__return_true');
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add Options To Hide WordPress Admin Dropdowns!!!!’ is closed to new replies.