Changing strings to null or to empty strings removes items from left menu of the uploader and corresponding tabs. Paste this code in functions.php:
function remove_media_tab( $strings ) {
if( !current_user_can( 'administrator' ) ) {
$strings["createGalleryTitle"] = "";
$strings["setFeaturedImageTitle"] = "";
$strings["insertFromUrlTitle"] = "";
$strings['createPlaylistTitle'] = "";
$strings['createVideoPlaylistTitle'] = "";
}
return $strings;
}
add_filter( 'media_view_strings', 'remove_media_tab' );
You can also get rid of “create audio playlist” and “create video playlist” buttons with filters:
add_filter( 'media_library_show_audio_playlist', function(){
return false;
}, 10, 1 );
add_filter( 'media_library_show_video_playlist', function(){
return false;
}, 10, 1 );
This would additionally save you from running default query that checks if there are any video/audio files in the media library.
Related Posts:
- Redirect to another page using contact form 7? [closed]
- ‘Global’ settings page for multisite plugin
- How to do I get a list of active plugins on my wordpress blog programmatically?
- How to add field for new site-wide option on Network Settings screen?
- WordPress 5.3 update causes media library file upload to break – Cannot convert undefined or null to object
- Making my plugin multi-site compatible
- How to tell if a plugin is multisite compatible?
- WordPress 3.5 Media Manager – add a button
- Plugin Development: WPMU or WP?
- Create a multisite network for an existing installation
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- “Micro-Site” Options
- External Domain on WordPress Multisite
- How to create user that has permission to create new sites on WordPress with multisite option enabled?
- Configuring Propel to Work with Multisite
- Setup page on first login on multisite
- Subdomains with almost the same content
- Uninstalling plugins across all sites
- Multiple domains issue
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
- Make change in media library affect images in published articles
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- “Master” WordPress Multisite – Database Sync
- Will these plugins work with wp multisite?
- User Signup in Multisite – Need Plugin or Advice
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Certain functions are undefined when called form mu-plugins
- Multisite for Multisite?
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- Multisite – maximum number of users with specific role
- Create a single website with 3 theme options in wordpress
- Why shortcode always displayed after footer not in body
- Understanding State in WordPress Multisites
- WordPress Multisite: Programmatically Activate / Deactivate a Plugin of a Specific Blog
- One sub site is slow while all others load fine, same theme & plugins [closed]
- How to display terms and conditions in post area?
- How to see which sites use my installed plugins (wordpress multisite)
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- Allowing .rfa Files In Media Upload [duplicate]
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- WordPress super admin login issue. (Automatically logout)
- How to fix broken media library?
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]
- Managing wordpress Themes & plugins for multisite
- download button for audio file in post [closed]
- How to remove a CPT Menu from the Root Admin only
- Hosting multiple sites
- Redirect Plugins.php to New Plugin Page
- WordPress’s is_plugin_active_for_network function not working for multisites
- Cannot add edit themes and add plugins after multisite update
- Each User has a Personal Blog
- Storing Form data in a different database
- Completely remove ability to create users?
- how to make a wplang for network fill automatically
- Creating teams of users in WordPress
- Do WordPress plugins suport multisite site?
- Can I remove an image from the Gallery without deleting it from the Media Library?
- Multisite Plugin – Access options (wp_options) on child sites
- looking for a multi-user hello-world plugin
- How to get values from network settings panel?
- Share plugins, themes, and multi post in a multidomain network
- Plugin to create unlimited custom shortcodes?
- Constructing a Pay to Download music website with wordpress
- After enable multisite enviroment in wordpress site creation wizard not working
- Bulk User Deletion
- Why does “updated_post_meta” did not fire when uploading media other than image?
- WordPress not showing manually uploaded files in Uploads folder on Media Library
- Best method of implementing compartmentalized custom post types on a multi-site network
- In a WPMU that uses several different domains, how to enable users to register subdomains of any domain from the main site?
- Multisite Change from domain.com to sub.newdomain.com
- Activation flow of a plugin in a multisite environment
- In Multisite Setups, how to update mass sections of sub-sites
- WordPress Multisite Profile Picture Sync Error with Nextend Social Login Plugin
- How to upload large media file in chunks, without any plugin?
- Bulk Image Resize for Media Library, but for ENLARGING instead of Shrinking
- Hide fields in woocommerce settings
- Admin Custom Plugin List Files in admin Table
- Multisite – Cloning CPT pages + content (including ACF Flexible Content) from site to site
- Javascript embedded disappears for editors
- How to copy the all WordPress media items to another custom plugin folder?
- Bulk Edit Media Library alt, caption, image names
- WP Forms not displaying,becomming an fatal error
- Can I edit multiple sites with an online WordPress account?
- Optimise wordpress database using SQL after deleting registered images from Media Folder
- disable plugin activation on no multisite
- Fatal error: require_once(): Failed opening required
- How to implement data residency in my WordPress site
- Which post/page an image is attached to
- How to Fix WordPress multisite woocommerce 403 file error
- Is it possible to pull all featured images from WP database only?
- How to capture hidden values with Gravity Forms
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Creating one user access account for all the multiple sites
- Media Dialog CSS broken in WP v.5.3.2
- Multiple image selection custom widget
- How to use get_blogs_of_user?
- Looking for Image Slider that is based on default WP Media Library
- Multisite converted to Single Site can’t add new plugins or new themes