ap_user_can_upload()
Description #
Check if user can upload an image.
Source #
File: includes/class/roles-cap.php
function ap_user_can_upload() { if ( ! is_user_logged_in() ) { return false; } if ( is_super_admin() ) { return true; } if ( ap_opt( 'allow_upload' ) ) { return true; } return false; }
Expand full source code Collapse full source code View on GitHub: includes/class/roles-cap.php:1039
Add your comment