Developer reference

Filters

All IDs and term IDs returned by these filters are validated as positive integers, and the query is built with prepared statements.

Overriding the template

Copy lh_rpbt-templates/default-template.php from the plugin to lh_rpbt-templates/default-template.php in the active (child) theme. It receives $the_query, a WP_Query of the related posts. The default output is a div.lh_rpbt-related_div.no-print holding an h3 and a ul.lh_rpbt-related_post_list; in block templates it is wrapped in the block’s own wrapper.

Stored data

Assets

Image size lh_rpbt_featured (200 by 150, cropped). Stylesheet handle lh_rpbt-style, enqueued only when a list is output; themes can override its rules.