WordPress plugin intelligence profile

Stockline – Custom Stock Messages for WooCommerce

Replace WooCommerce's plain "In stock" and "Out of stock" lines with your own messages, icons and colours for every stock state.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.0.3
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.5 · PHP 7.4
Directory statusactive
Last directory update19 Oct 202614d ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Stockline – Custom Stock Messages for WooCommerce version 1.0.3 as active, updated 14d ago and tested up to WordPress 7.1.

Overview

About this plugin

WooCommerce tells shoppers “Out of stock” and leaves it there. Stockline lets you say something useful instead: “Only 2 left, order soon”, “Made to order, ships in 2–3 weeks”, “Sold out, ask us about restocking”.

Your own message for every stock state

  • In stock: e.g. “In stock, ships today”. Also shown for products that don’t track stock, where WooCommerce shows nothing.
  • Low stock: e.g. “Only {qty} left, order soon”, using WooCommerce’s own low stock threshold (store-wide or per product).
  • On backorder: e.g. “Ships in 2–3 weeks”.
  • Out of stock: e.g. “Sold out, back soon”.

Leave any message empty to keep WooCommerce’s text, with your icon and colour. Other plugins can add states of their own, such as a “Pre-order” state, and they get a message, icon and colour on the same screen.

Looks right in your theme

  • Icons (check mark, warning, clock, cross, delivery truck, dot) and a colour per state.
  • Plain text or a soft coloured badge.
  • A live preview of each state on the settings screen as you type, before you save.
  • Keeps WooCommerce’s own CSS classes, so your theme’s styling still applies.

Works everywhere WooCommerce shows stock

Classic themes, block themes (the Add to Cart form block) and variable products, where the message updates as shoppers pick options. Stockline hooks the final stock HTML that WooCommerce itself builds, so there are no template overrides to go stale after WooCommerce updates.

Placeholders and light HTML

Use {qty} for the units left and {product} for the product name. g. Sold out, <a href="/contact">ask us about restocking</a>.

For developers

  • stockline_stock_html filters the final markup ( $html, $product, $state ).
  • stockline_states, stockline_state and stockline_placeholders let other plugins add a state with its own message, icon and colour, and placeholders for it. Preorderline uses them for a “Pre-order” state with {date}.
  • stockline_product_settings lets a plugin give a product or variation its own message, icon or colour, and stockline_page_colors adds the colours it uses to the page’s stylesheet.
  • stockline_enqueue_styles loads the small stylesheet beyond product pages, e.g. for a Single Product block on a landing page.
  • stockline_loaded fires once Stockline has loaded, for add-ons.

Stockline Pro

Stockline’s messages are store-wide. If some products need their own (“Back mid-November”, or “Size S is back in December” for one variation), the separate Stockline Pro add-on adds a message, icon and colour per product and per variation, a preview dialog on the product screen, and columns for them in the Gridline bulk editor. Everything described above works without it.

com/plugins/stockline. Stockline Pro is sold under our Terms and Privacy Policy.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • low stock
  • out of stock
  • stock status
  • backorder
  • woocommerce
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.5 · PHP 7.4
Update activity19 Oct 202614d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.0.21.0.3
Version1.0.11.0.2
Version1.0.01.0.1
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.