Beispiel #1
0
 /**
  */
 public function get_content()
 {
     if (!is_null(parent::get_content()) && !is_feed() && current_user_can($this->get_att('capability'))) {
         return parent::get_content();
     }
     return null;
 }
Beispiel #2
0
 /**
  */
 public function get_content()
 {
     // not logged in and not a feed?
     if (!is_user_logged_in() && !is_feed()) {
         // they are a visitor
         return parent::get_content();
     }
     return null;
 }