LanternWP Companion 1.0.1 has 3 actions and 8 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when LanternWP Companion fires an action
add_action( 'lanternwp_contact_message', function( $id, $fields ) {
// Your code runs here.
}, 10, 2 );
// Change a value LanternWP Companion is about to use
add_filter( 'lanternwp_back_in_stock_batch', function( $value, $arg2 ) {
// Change $value here.
return $value;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * How many back-in-stock emails a job sends before it schedules the next * batch. */ apply_filters( 'lanternwp_back_in_stock_batch', self::BATCH, $product->get_id() ); -
/** * How long after a product is back in stock its back-in-stock emails start, in * seconds. */ apply_filters( 'lanternwp_back_in_stock_delay', MINUTE_IN_SECONDS, $id ); -
/** * Whether the store is a public demo, which takes a message and keeps and * sends nothing. */ apply_filters( 'lanternwp_contact_demo', false ); -
/** * A contact message was kept, for an integration (a helpdesk, a chat channel). */ do_action( 'lanternwp_contact_message', $message->id, $message->fields ); -
/** * Filters the lanternwp.com the plugin asks: the demo store the Demos screen * lists and imports demos from. */ apply_filters( 'lanternwp_demo_server', self::DEFAULT ); -
/** * Whether the store is a public demo, which takes back-in-stock requests and * keeps nothing. */ apply_filters( 'lanternwp_notify_demo', false ); -
/** * Filters the cards of the Posts with this Product block on a product page: a * serialized Post Template block, core's featured image, title and date by * default. Its class must hold `$className`, by which the block gives the * Query its posts; without it the Query lists the latest posts. */ apply_filters( 'lanternwp_product_posts_template', $template, $count, self::CARDS ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'query_vars', $wp->public_query_vars );
Generated from LanternWP Companion's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: