YayReviews 1.4.3 has 54 actions and 63 filters, read directly from its source code on Nov 18, 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 YayReviews fires an action
add_action( 'post_edd_sl_plugin_updater_setup', function( $edd_plugin_data ) {
// Your code runs here.
}, 10, 1 );
// Change a value YayReviews is about to use
add_filter( 'yayrev_email_content', function( $content, $email_type, $data ) {
// Change $content here.
return $content;
}, 10, 3 );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
-
/** * Filter the final email content */ apply_filters( 'yayrev_email_content', $content, $email_type, $data ); -
/** * This filter is documented in templates/single-review-card.php */ apply_filters( 'yayrev_show_review_overall_rating', true, $comment ); -
/** * Fires after the $edd_plugin_data is setup. */ do_action( 'post_edd_sl_plugin_updater_setup', $edd_plugin_data ); -
/** * The woocommerce_review_before hook */ do_action( 'woocommerce_review_before', $comment ); -
/** * The woocommerce_review_before_comment_meta hook. */ do_action( 'woocommerce_review_before_comment_meta', $comment ); -
/** * The woocommerce_review_comment_text hook */ do_action( 'woocommerce_review_comment_text', $comment ); -
/** * Action after email content */ do_action( 'yayrev_email_after_content', $email_type, $data ); -
/** * Action before email content */ do_action( 'yayrev_email_before_content', $email_type, $data ); -
/** * Filter button HTML */ apply_filters( 'yayrev_email_button_html', $html, $text, $url, $color ); -
/** * Filter email heading before rendering header */ apply_filters( 'yayrev_email_header_heading', $this->email_heading, $this->current_email_type ); -
/** * Filter the email heading */ apply_filters( 'yayrev_email_heading', $heading, $email_type, $placeholders ); -
/** * Filter detected link type for custom link types */ apply_filters( 'yayrev_email_link_type', 'general', $url ); -
/** * Filter available placeholders */ apply_filters( 'yayrev_email_placeholders', $placeholders, $text ); -
/** * Filter product card HTML */ apply_filters( 'yayrev_email_product_card_html', $html, $product, $review_url ); -
/** * Filter whether to track this specific link */ apply_filters( 'yayrev_email_should_track_link', true, $url, $this->current_queue_id ); -
/** * Filter star icons HTML */ apply_filters( 'yayrev_email_star_icons', $stars, $count ); -
/** * Filter the rendered content. Tracking (pixel + link wrapping) is applied * afterwards by the sender via apply_tracking(), so it runs once for both the * built-in and the YayMail render paths. */ apply_filters( 'yayrev_email_styled_content', $content, $this->current_email_type, $this->current_queue_id ); -
/** * Filter the email subject */ apply_filters( 'yayrev_email_subject', $subject, $email_type, $placeholders ); -
/** * Filter template data before rendering */ apply_filters( 'yayrev_email_template_data', $data, $email_type ); -
/** * Filter the template filename for an email type */ apply_filters( 'yayrev_email_template_name', $template_map[$email_type] ?? null, $email_type ); -
/** * Action when template is not found - plugins can output content here */ do_action( 'yayrev_email_template_not_found', $template_name, $this->current_email_type, $data ); -
/** * Filter the tracking pixel HTML */ apply_filters( 'yayrev_email_tracking_pixel', $tracking_pixel, $this->current_queue_id ); -
/** * Fires inside the filter panel, after the "Show only" checkboxes. Review * Topics puts its "What customers mention" chips here. */ do_action( 'yayrev_filter_bar_after_toggles', $product_id ?? 0 ); -
/** * Fires inside the rating summary wrapper, after the layout body. */ do_action( 'yayrev_rating_summary_after', $summary, (int) $product_id, $layout ); -
/** * Filters the validation result of a product review submission, after the * title, content and consent checks. Fired from * ReviewFormHooks::validate_review() on preprocess_comment, for the classic * form and both REST submit routes. */ apply_filters( 'yayrev_review_validation_result', $result, $form_data, $comment_data ); -
/** * Fires after the review card on the standalone single review page * (/reviews/{id}/) - Related Reviews renders its section here. Not fired for * visitors behind the login gate. */ do_action( 'yayrev_single_review_page_after_card', $comment ); -
/** * Fires after the review content/media on the standalone single review page * (/reviews/{id}/). Same extension point Review Topics' "Topics in this * review" line uses on the product page's review list * (woocommerce_review_after_comment_text) - this template doesn't go through * that hook, so it needs its own. */ do_action( 'yayrev_single_review_page_after_content', $comment ); -
do_action( 'yayrev_widget_review_after_content', (int) $review_id ); -
do_action( 'woocommerce_review_after_comment_text', $comment ); -
apply_filters( 'yaycommerce_licensing_plugins', [] ); -
do_action( 'yayrev_after_save_review', $comment_id, $form_data ); -
do_action( 'yayrev_enqueue_rating_styles' ); -
apply_filters( 'yayrev_purchase_dropdown_order_statuses', ['completed', 'refunded'], $parent_product_id, $user_id ); -
apply_filters( 'edd_sl_api_request_verify_ssl', \true, $this ); -
apply_filters( 'get_comment_author', $comment->comment_author, $comment->comment_ID, $comment ); -
do_action( "in_plugin_update_message-{$file}", $plugin, $version_info ); -
do_action( 'set_comment_cookies', $comment, wp_get_current_user(), isset($_POST['wp-comment-cookies-consent']) ); -
apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'type' => 'list', ) ); -
woocommerce_product_review_comment_form_args
filter Used by 17 plugins → Copy link Customise this hookapply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ); -
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) ); -
do_action( 'woocommerce_review_before_comment_text', $comment ); -
do_action( 'woocommerce_review_meta', $comment ); -
apply_filters( 'woocommerce_reviews_title', esc_html__( 'Ratings & reviews', 'yay-customer-reviews-woocommerce' ), $count, $product ); -
apply_filters( 'yay_recommended_plugins_excluded', self::get_other_plugins() ); -
do_action( 'yaycommerce_admin_shell_booted', $instance ); -
do_action( 'yaycommerce_admin_shell_license_enabled', $adapter ); -
apply_filters( 'yaycommerce_admin_shell_plugin_info', $info, $info->slug ); -
do_action( 'yaycommerce_licenses_page' ); -
do_action( 'yayrev_after_custom_fields' ); -
do_action( 'yayrev_after_media_upload', $attachment_ids, $review_id ); -
do_action( 'yayrev_after_review_form' ); -
do_action( 'yayrev_after_review_form_fields' ); -
do_action( 'yayrev_after_reviews_list' ); -
apply_filters( 'yayrev_aggregated_media', null, $context, $id, $opts ); -
apply_filters( 'yayrev_allowed_mime_types', $mimes ); -
do_action( 'yayrev_before_custom_fields' ); -
do_action( 'yayrev_before_review_form' ); -
do_action( 'yayrev_before_review_form_fields' ); -
do_action( 'yayrev_before_reviews_list' ); -
do_action( 'yayrev_before_save_review', $comment_id, $_POST ); -
do_action( 'yayrev_before_validate_review', $form_data, $comment_data ); -
apply_filters( 'yayrev_capability_defaults', $defaults ); -
do_action( 'yayrev_customer_unsubscribed', $email ); -
do_action( 'yayrev_email_failed', $queue_id, $e->getMessage() ); -
apply_filters( 'yayrev_email_language', '', $order ); -
do_action( 'yayrev_email_scheduled', $queue_id, $order_id, $rule['id'] ); -
do_action( 'yayrev_email_sent', $queue_id, $email ); -
do_action( 'yayrev_email_tracked', $tracking_id, $queue_id, $event_type, $event_data ); -
apply_filters( 'yayrev_enable_product_review_ui', true ); -
do_action( 'yayrev_enqueue_review_topics_styles' ); -
do_action( 'yayrev_follow_up_rule_triggered', $email->order_id, $rule, $email ); -
apply_filters( 'yayrev_gdpr_checkbox_args', $args ); -
do_action( 'yayrev_import_completed', $job ); -
apply_filters( 'yayrev_import_store_review_row', null, $data, $job ); -
do_action( 'yayrev_loaded' ); -
apply_filters( 'yayrev_location_badge_html', $html, $comment, $country_code, $country_name ); -
do_action( 'yayrev_media_deleted', $id ); -
apply_filters( 'yayrev_media_sideload_max_bytes', self::MAX_BYTES ); -
apply_filters( 'yayrev_media_upload_args', $args ); -
apply_filters( 'yayrev_product_media_args', $args ); -
apply_filters( 'yayrev_product_mpn', '', $product ); -
apply_filters( 'yayrev_purchase_dropdown_allow_duplicate', false, $parent_product_id, $user_id, $order_item_id ); -
apply_filters( 'yayrev_purchase_dropdown_cache_ttl', 15 * MINUTE_IN_SECONDS ); -
apply_filters( 'yayrev_purchase_dropdown_options', $options, $parent_product_id, $user_id ); -
apply_filters( 'yayrev_purchase_dropdown_order_limit', 20, $parent_product_id, $user_id ); -
apply_filters( 'yayrev_purchase_dropdown_required', false, $product_id, $user_id ); -
apply_filters( 'yayrev_purchase_variation_field_args', $args, $product_id, $user_id ); -
apply_filters( 'yayrev_qna_vote_answer_payload', $data, $answer ); -
apply_filters( 'yayrev_qna_vote_question_payload', $data, $question ); -
apply_filters( 'yayrev_rating_summary_grade', $label, $ratio, $average ); -
do_action( 'yayrev_reply_notification_sent', $review->comment_ID, $customer_email ); -
do_action( 'yayrev_review_after_rating_row', $comment ); -
apply_filters( 'yayrev_review_button_order_statuses', ['completed', 'refunded'] ); -
do_action( 'yayrev_review_card_after_rating', $comment ); -
do_action( 'yayrev_review_edited', $review_id, $data ); -
apply_filters( 'yayrev_review_form_data', $form_data, $comment_data ); -
do_action( 'yayrev_review_imported', $comment_id, $data, $job ); -
apply_filters( 'yayrev_review_login_gate_html', $html, $context ); -
apply_filters( 'yayrev_review_media_args', $args ); -
do_action( 'yayrev_review_rating_row', $comment ); -
apply_filters( 'yayrev_review_title_args', $args ); -
apply_filters( 'yayrev_review_title_html', $html, $title, $comment ); -
do_action( 'yayrev_review_topics_fields', $product ); -
apply_filters( 'yayrev_review_url', $url, $product, $order, $rule ); -
apply_filters( 'yayrev_reviews_wrapper_class', 'woocommerce-Reviews yayrev-reviews' ); -
apply_filters( 'yayrev_send_queued_email', null, $email, $allow_resend, $add_sent_note ); -
apply_filters( 'yayrev_should_disable_wp_emoji_scripts_and_styles', true ); -
do_action( 'yayrev_store_reply_created', $reply_id, $review_id, $content ); -
do_action( 'yayrev_store_review_after_content', $review ); -
do_action( 'yayrev_store_review_before_header', $review ); -
apply_filters( 'yayrev_template_location', $located, $template, $args ); -
apply_filters( 'yayrev_title_field_args', $args ); -
apply_filters( 'yayrev_validated_comment_data', $comment_data, $form_data ); -
apply_filters( 'yayrev_verified_badge_args', $args ); -
apply_filters( 'yayrev_verified_badge_html', $html, $comment ); -
do_action( 'yayrev_yaymail_integration_loaded' ); -
apply_filters( 'yayrev_yaymail_render_data', $render_data, $email_id, $context );
Generated from YayReviews'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: