bbp_global_access_mapped_meta_caps

  • apply_filters( 'bbp_global_access_mapped_meta_caps', $mapped_meta_caps )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-caps.php :: Trac Source Line: 601
      		foreach ( $caps_for_role as $cap ) {
      			$mapped_meta_caps[$cap] = true;
      		}
      
      		// Add 'read' cap just in case
      		$mapped_meta_caps['read']       = true;
      		$mapped_meta_caps['bbp_masked'] = true;
      
      		// Allow global access caps to be manipulated
      		$mapped_meta_caps = apply_filters( 'bbp_global_access_mapped_meta_caps', $mapped_meta_caps );
      
      		// Assign the role and mapped caps to the current user
      		global $bbp;
      		$bbp->current_user->roles[0] = $default_role;
      		$bbp->current_user->caps     = $mapped_meta_caps;
      		$bbp->current_user->allcaps  = $mapped_meta_caps;
      	}
      }
      
      ?>
      

Comments are closed.