Tech News is a blog created by Wasim Akhtar to deliver Technical news with the latest and greatest in the world of technology. We provide content in the form of articles, videos, and product reviews.
The four best podcast apps for Android phones
via PCWorld http://ift.tt/1LWGAql
Mohu Channels review: An ugly marriage of over-the-air and streaming TV
via PCWorld http://ift.tt/1COfY4X
WordPress – Allow Contributors to Add / Upload Media
In WordPress by default the Add Media functionality (called Capability in wordpress terms) is disabled for users with Contributor role. If you are hosting multiuser wordpress site where users with contributor roles logs in and update their post, they would not be able to add images / medias. That’s quite annoying. The user who is editing a post must be able to add supported media for their post.
Check below screenshot. The current user has “Contributor” role. Hence she is not able to view Add media button.
Now to overcome this there is a simple trick. By using WordPress’s add_cap method we can add different capabilities to user. So we can add upload_files capability to a Contributor using this method.
Add following code in functions.php file of your current wordpress theme.
//Allow Contributors to Add Media
if ( current_user_can('contributor') && !current_user_can('upload_files') )
add_action('admin_init', 'allow_contributor_uploads');
function allow_contributor_uploads() {
$contributor = get_role('contributor');
$contributor->add_cap('upload_files');
}
Now logout and login again using a user with contributor role. Ta’da.. Add media button is visible now.
Use this simple trick to make Add media button visible for contributors on your wordpress site. I think this simple trick will help those who have contributors on their site.
The post WordPress – Allow Contributors to Add / Upload Media appeared first on ViralPatel.net.
Related Articles
- WordPress Tip: Insert Content automatically after each Post in wordpress
- Save Webserver Space by turning off Image Thumbnails in WordPress
- Say Hello to WordPress 3.0!
- How to Disable Post Revision History or Version Tracking in WordPress
- WordPress 2.9 is out. Get your copy now
- Android: Trigger Media Scanner Programmatically
- Pillows for you: Try these Social Media Pillow
via ViralPatel.net http://ift.tt/1CO56nL
Windows 11 Insider Preview Build 29558.1000 Released to New Canary Channel
UPDATE: Windows 11 Insider Preview build 29558.1000 released to the new Canary channel. Windows Insiders on the refreshed Canary Channel wil...
-
UPDATE: Direct download links added for the latest Mozilla Firefox 131.0.2, 115.16.1 ESR and 128.3.1 ESR offline installers. NOTE: The downl...
-
Newer versions of Windows 11 come with a new security feature called “Windows Protected Print Mode (WPP)“. This article will help you in act...