{"id":14955038,"url":"https://github.com/haseemajaz/hide-wordpress-admin-help-and-screen-options","last_synced_at":"2026-02-20T19:33:50.332Z","repository":{"id":194419337,"uuid":"690810501","full_name":"haseemajaz/Hide-WordPress-Admin-Help-and-Screen-Options","owner":"haseemajaz","description":"This versatile piece of code allows you to customize the WordPress admin interface by hiding the Help tab and Screen Options tab based on user roles and preferences.","archived":false,"fork":false,"pushed_at":"2023-09-13T00:14:36.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T02:13:12.545Z","etag":null,"topics":["code","codesnippet","codesnippets","dashboard","website","website-design","website-development","websites","wordpress","wordpress-api","wordpress-child-theme","wordpress-development","wordpress-plugin","wordpress-site","wordpress-starter-theme","wordpress-theme"],"latest_commit_sha":null,"homepage":"https://haseemajaz.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haseemajaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-12T23:43:07.000Z","updated_at":"2024-01-03T13:12:03.000Z","dependencies_parsed_at":"2023-09-13T07:46:55.937Z","dependency_job_id":"a97f7cd7-1d1e-4642-950c-442446c60a8d","html_url":"https://github.com/haseemajaz/Hide-WordPress-Admin-Help-and-Screen-Options","commit_stats":null,"previous_names":["haseemajaz/hide-wordpress-admin-help-and-screen-options"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haseemajaz/Hide-WordPress-Admin-Help-and-Screen-Options","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseemajaz%2FHide-WordPress-Admin-Help-and-Screen-Options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseemajaz%2FHide-WordPress-Admin-Help-and-Screen-Options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseemajaz%2FHide-WordPress-Admin-Help-and-Screen-Options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseemajaz%2FHide-WordPress-Admin-Help-and-Screen-Options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haseemajaz","download_url":"https://codeload.github.com/haseemajaz/Hide-WordPress-Admin-Help-and-Screen-Options/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseemajaz%2FHide-WordPress-Admin-Help-and-Screen-Options/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275658256,"owners_count":25504774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code","codesnippet","codesnippets","dashboard","website","website-design","website-development","websites","wordpress","wordpress-api","wordpress-child-theme","wordpress-development","wordpress-plugin","wordpress-site","wordpress-starter-theme","wordpress-theme"],"created_at":"2024-09-24T13:10:25.800Z","updated_at":"2025-09-17T20:26:48.915Z","avatar_url":"https://github.com/haseemajaz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hide-WordPress-Admin-Help-and-Screen-Options\nThis versatile piece of code allows you to customize the WordPress admin interface by hiding the Help tab and Screen Options tab based on user roles and preferences.\n\n**What Does This Code Snippet Do?**\n\nThe WordPress admin interface is incredibly flexible, but sometimes you may want to streamline it for certain users or to eliminate distractions. This code snippet provides two separate functionalities:\n\nHide the Help Tab: It allows you to hide the \"Help\" tab in the WordPress admin dashboard for specific user roles or globally. This can declutter the interface, making it more user-friendly for your team.\n\nHide the Screen Options Tab: It enables you to hide the \"Screen Options\" tab, which allows users to customize the display of dashboard elements. By hiding this tab, you can ensure a consistent and focused dashboard layout for your users.\n\n**How to Use This Code Snippet**\n\nIf you want to customize the WordPress admin interface using this code snippet, follow these simple steps:\n\nAccess Your Theme's functions.php File:\n\nLog in to your WordPress dashboard.\nGo to \"Appearance\" \u003e \"Theme Editor.\"\nSelect your active theme.\nAdd the Code Snippet to functions.php:\n\nOn the right side, find and click on the functions.php file.\nScroll to the bottom of the file and paste the following code snippet:\n\n```\n\nfunction hide_help() {\n    if (is_admin()) {\n        echo '\u003cstyle type=\"text/css\"\u003e\n                #contextual-help-link-wrap { display: none !important; }\n              \u003c/style\u003e';\n    }\n}\nadd_action('admin_head', 'hide_help');\n\n```\n\nThis part of the code will hide the Help tab.\n\n**Save Changes:**\n\nClick the \"Update File\" button to save your changes.\nCustomize Screen Options (Optional):\n\nIf you want to customize the Screen Options tab, you can paste the following code snippet below the previous one:\n\n```\nfunction wpb_remove_screen_options() { \n    if (!current_user_can('manage_options')) {\n        return false;\n    }\n    return true; \n}\nadd_filter('screen_options_show_screen', 'wpb_remove_screen_options');\n\n```\n\nThis part of the code allows you to hide the Screen Options tab for users who do not have the \"manage_options\" capability (typically administrators).\n\n**Save Changes Again:**\n\nClick the \"Update File\" button to save both code snippets.\n\n**Customization**\n\nYou can customize this code snippet further by adjusting user roles or capabilities to control who sees the Help and Screen Options tabs. For instance, you can modify the current_user_can() function to match specific roles or capabilities.\n\n**Contributions and Issues**\n\nThis open-source code snippet is hosted on GitHub to encourage collaboration and improvements from the community. If you have any ideas for enhancements or discover any issues, please feel free to open an issue on GitHub. We appreciate your involvement in making this code snippet even more useful.\n\n**License**\n\nThis \"Hide WordPress Admin Help and Screen Options\" code snippet is distributed under the GNU General Public License v2.0. It's free to use, modify, and distribute according to the terms of the license.\n\nThank you for considering this code snippet for customizing your WordPress admin interface. We hope it helps you create a more focused and efficient workspace for your users. Enjoy your improved WordPress experience!\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaseemajaz%2Fhide-wordpress-admin-help-and-screen-options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaseemajaz%2Fhide-wordpress-admin-help-and-screen-options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaseemajaz%2Fhide-wordpress-admin-help-and-screen-options/lists"}