If you deal with wp menus you shoudl use admin_menu filter.
add_filter('admin_menu', 'admin_menu_filter',500);
function admin_menu_filter(){
remove_submenu_page( 'themes.php', 'widgets.php' );//widget
remove_submenu_page( 'themes.php', 'theme-editor.php'); //editor
remove_submenu_page( 'themes.php', 'theme_options' ); //theme-option
}
add_action('admin_print_styles-themes.php', 'hide_customize');
function hide_customize(){
echo '<style>#customize-current-theme-link{display:none;}</style>';
}
you can place it to your plugin or functions.php in your theme.
Related Posts:
- Explanation of this hacked code
- If hacker looked into all php file, can he make a harm to me?
- Custom row action on custom posts list page causes a wp_die?
- Turning a WP Site Into an iPhone/iPad App [closed]
- Add class to before_widget from within a custom widget
- How to get permalinks with category base working with sub-categories
- How would I compare and remove hacks to core?
- How to generate/update a XML sitemap without plugins?
- Brute force attack?
- Posts in multiple Categories different single.php
- Hacking TinyMCE for better usability (shortcodes and html)
- brute force attack even though it is limited by IP
- How can I assign post a specific ID on creation?
- Synchronizing Two WordPress Sites Content
- Intercept comment form submit/list by hook/filter
- Can’t stop hacker trying to get admin access in WordPress blog after trying many ways [closed]
- How to prevent bot or someone to modify any file automatically?
- How can I autopopulate titles in the media library?
- Attach to wp-login.php and xmlrpc.php
- WordPress login urls
- Why was my blog post inserted lot’s of ad links by others?
- Security issues with WP sites
- How do I specify more than one category?
- Is it dangerous to install unupdated plugins?
- Files automatically added
- Adding custom fields (post meta) before/during wp_insert_post()
- Change the ‘published on’ text?
- How to get “Widget Logic” plugin’s input value in a custom widget code (to display on the Widget admin page)
- Multiple wp_options tables to share content across installs
- Delete all one-word comments
- Add Download Button in prettyPhoto Plugin
- how to remove mandatory required fields in buddypress registration [closed]
- Using Fullscreenr with a wordpress blog – weird bug
- How can I safely hide the fact that my website runs on WordPress? [closed]
- How can I programmatically show a specific (template) page, like author.php?
- API for wp menu hacks
- Common single page template options
- What does this code do? (Injected code hacked)
- Some one is trying to hack my website, Need guidance [closed]
- Protect Passwords in wp_users with stronger protection than MD5
- WordPress Admin Login Custom Logo
- WordPress Phone Verification
- Trying to get variables in hacked category dropdown
- security issue in wordpress?
- how to activate a plugin inside a theme
- Can’t Find a “Most Popular Tags” Hack Anywhere [closed]
- malware undetectable by multiple scans
- How can I reference external attachments without breaking core WordPress files?
- Admin user lacks admin permissions after hack and can’t reinstate
- Custom Post Types and Removing Slugs – should we do it?
- wordpress admin security
- Want to modify a Plugin – Tweetily – Can I make it tweet a Custom Field instead of Post Title?
- why the posts queried from sql is more than those showed on the page?
- how to create a sub section in posts
- How to update custom field of a posts in a particular category
- How to insert category name above post title in a featured pages plugin?
- Hacked site using transient API?
- Being hacked. Is there a list of WordPress security holes I can check against?
- Pull ‘Popular Posts’ within specific timeframe
- db.php, is it a legit file [closed]
- Post not showing up sometimes on website
- Trying to see if page is category or single and displaying title with appropriate heading tag
- Is there any way to give all users access to one blog in a multisite network without using a plugin?
- child_of not working while searching
- How to stop repeated hack on header.php of custom theme? [closed]
- how woocommerce swatch color name when hovered or selected
- How to avoid conflict between plugin and its edited version?
- Windows 10 Printer that Sends to WordPress [closed]
- Is there any Reference of WordPress hook and hacks? [closed]
- How to Supply Console Logs Data into the WooCommerce Cart?