Automattic\WooCommerce\Internal\StockNotifications
NotificationQuery::get_notifications
Get notifications.
Метод класса: NotificationQuery{}
Хуков нет.
Возвращает
array. The notifications.
Использование
$result = NotificationQuery::get_notifications( $args ): array;
- $args(массив) (обязательный)
- The arguments to pass to the query.
Код NotificationQuery::get_notifications() NotificationQuery::get notifications WC 11.2.2
public static function get_notifications( array $args ): array {
$result = self::run_query( $args );
return is_array( $result ) ? $result : array();
}