Last active
July 7, 2017 18:55
-
-
Save asterion/87a2883c427ed1216a01174576c13388 to your computer and use it in GitHub Desktop.
otorgar permiso de subir multimedia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function allow_contrib_upload() { | |
$contrib = get_role( 'contributor' ); | |
$contrib->add_cap( 'upload_files' ); | |
} | |
add_action( 'admin_init', 'allow_contrib_upload', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment