Automattic\WooCommerce\Internal\StockNotifications
NotificationQuery::get_notifications
Get notifications.
Method of the class: NotificationQuery{}
No Hooks.
Returns
array. The notifications.
Usage
$result = NotificationQuery::get_notifications( $args ): array;
- $args(array) (required)
- The arguments to pass to the query.
NotificationQuery::get_notifications() NotificationQuery::get notifications code WC 11.3.0
public static function get_notifications( array $args ): array {
$result = self::run_query( $args );
return is_array( $result ) ? $result : array();
}