Skip to content
No results
  • Admin Panel
  • Security
  • Optimization
  • WooCommerce
    • General
    • Products
    • Coupon
    • Cart & Checkout
  • Management
  • Content
  • Media
  • Elementor
  • Gutenberg
Snipjar
No results
  • Admin Panel
  • Security
  • Optimization
  • WooCommerce
    • General
    • Products
    • Coupon
    • Cart & Checkout
  • Management
  • Content
  • Media
  • Elementor
  • Gutenberg
Snipjar
  • Media

Allow contributors to upload images

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');
     }
Previous Post Apply a coupon depending on cart weight 
Next Post Show post thumbnails in RSS Feed
  • Privacy Policy

Curated with ❤️ by Snipjar.