Configuration

Add your own content before the scrolling products (developers)Free

For developers: the wpmozo_pt_ticker_start_html filter adds fixed HTML between the flag label and the scrolling products.

On this page

This guide is for developers. From version 1.1.0 the free plugin has a filter, wpmozo_pt_ticker_start_html, that puts your own HTML in a fixed slot between the flag label and the scrolling products. The slot does not scroll.

The filter#

  • $start_html (string): the HTML for the slot. Empty by default.
  • $args (array): the ticker’s settings after the plugin has cleaned them up, for example $args['source'] and $args['layout'].

Example#

This adds a short text to every ticker whose source is On sale. Put it in a small plugin of your own or in your child theme’s functions.php.

add_filter( 'wpmozo_pt_ticker_start_html', function ( $start_html, $args ) {
	if ( 'on_sale' !== $args['source'] ) {
		return $start_html;
	}
	return $start_html . '<span class="my-ticker-note">' . esc_html__( 'Ends Sunday', 'my-textdomain' ) . '</span>';
}, 10, 2 );

Good to know#

  • The plugin prints what your callback returns as it is, so escape your own output (esc_html(), esc_url(), wp_kses_post()).
  • Add to $start_html and return it. Do not replace it, because the Pro add-on uses the same slot for its pinned product.
  • While the slot has content, the ticker shows even when it has no products to scroll.

Was this article helpful?

Updated Nov 21, 2026

✕ Black Friday Popup Cyber Monday Popup