Yoast_Notification_Center::notification_to_array
Convert Notification to array representation.
Метод класса: Yoast_Notification_Center{}
Хуков нет.
Возвращает
Массив.
Использование
// private - только в коде основоного (родительского) класса $result = $this->notification_to_array( $notification );
- $notification(Yoast_Notification) (обязательный)
- Notification to convert.
Список изменений
| С версии 3.2 | Введена. |
Код Yoast_Notification_Center::notification_to_array() Yoast Notification Center::notification to array Yoast 27.3
private function notification_to_array( Yoast_Notification $notification ) {
$notification_data = $notification->to_array();
if ( isset( $notification_data['nonce'] ) ) {
unset( $notification_data['nonce'] );
}
return $notification_data;
}