WordPress filter hook
rooster/admin/feedback_sender
Fired by 3 WordPress plugins, running on 10+ sites between them.
“Filters the callable that sends a product's feedback (0.20.0): `function ( array $payload, string $product ): array{ok: bool, queued: bool}|WP_Error`. A product answers for its own slug (priority 10); Rooster One answers for every product without one (priority 20). Null leaves the bar with the product's feedback link and prints no dialog.”
How to use rooster/admin/feedback_sender
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'rooster/admin/feedback_sender', function( $value, $product ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from Rooster One's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
3 plugins that fire rooster/admin/feedback_sender
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Rooster One10+ installs
apply_filters( 'rooster/admin/feedback_sender', null, $product )lib/rooster-admin/includes/Feedback.php:79 -
Rooster LRSFewer than 10 installs
apply_filters( 'rooster/admin/feedback_sender', null, $product )lib/rooster-admin/includes/Feedback.php:27 -
Rooster LMSFewer than 10 installs
apply_filters( 'rooster/admin/feedback_sender', null, $product )lib/rooster-admin/includes/Feedback.php:27
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.