Stock Quantity Block for WP Grid Builder

In the unofficial WP Grid Builder Facebook group a user asked:

Is it possible to show stock quantity on the card? I can't find it in blocks, only in/out of stock, and I need to show how many items are on stock.

This Pro tutorial provides the code for creating a custom WP Grid Builder block using the wp_grid_builder/blocks filter.

Add the following in child theme's functions.php or a code snippets plugin:

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Instant access to 390+ Bricks code tutorials with BricksLabs Pro