コード例 #1
0
 /**
  * Convert Notification to array representation
  *
  * @param Yoast_Notification $notification Notification to convert.
  *
  * @since 3.2
  *
  * @return array
  */
 private function notification_to_array(Yoast_Notification $notification)
 {
     return $notification->to_array();
 }
コード例 #2
0
 /**
  * Filter notifications that should not be displayed for the current user
  *
  * @param Yoast_Notification $notification Notification to test.
  *
  * @return bool
  */
 private function filter_notification_current_user(Yoast_Notification $notification)
 {
     return $notification->display_for_current_user();
 }
コード例 #3
0
ファイル: class-yoast-alerts.php プロジェクト: Garth619/Femi9
 /**
  * Filter out any non-warnings
  *
  * @param Yoast_Notification $notification Notification to test.
  *
  * @return bool
  */
 private static function filter_warning_alerts(Yoast_Notification $notification)
 {
     return $notification->get_type() !== 'error';
 }