apply_filters( 'clanbite_forums_user_can_upload_image', bool $can, int $user_id )Whether the user may upload images for forum posts.
Default: upload_files capability. Use the filter to allow other roles.
Filter PHP
Parameters
$can(bool)Whether upload is allowed.
$user_id(int)User ID.
Example
add_filter( 'clanbite_forums_user_can_upload_image', function ( $can, $user_id ) {
// Change $can here.
return $can;
}, 10, 2 );Defined in inc/Rest/Rest_Controller.php