Created
September 18, 2017 16:46
-
-
Save Viper007Bond/bf9c5ade18ad96c23e50b8e2d5e615ca to your computer and use it in GitHub Desktop.
Change who can use Regenerate Thumbnails
This file contains 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 | |
## Copy/paste the below code into your theme's functions.php file or a new plugin. | |
add_filter( 'regenerate_thumbs_cap', function( $capability ) { | |
// See https://codex.wordpress.org/Roles_and_Capabilities | |
return 'upload_files'; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment