Example #1
0
 /**
  * depending where it's used the base function from WordPress doesn't work, so this one will work anywhere
  * @param type $capability
  * @return type
  */
 public static function current_user_can($capability)
 {
     if (!$capability) {
         return false;
     }
     WYSIJA::update_user_caps();
     if (!current_user_can($capability)) {
         return false;
     }
     return true;
 }