woocommerce_admin_dashboard_recent_reviews, $comment->post_title, $comment
woocommerce_admin_dashboard_recent_reviews, $comment->post_title, $comment
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_admin_dashboard_recent_reviews, $comment->post_title, $comment') is found 1 times:
- /includes/admin/class-wc-admin-dashboard.php line 471
* @param string $product_title The product name. * @param \stdClass $comment The comment. * @since 2.1.0 */ $product_title = apply_filters( 'woocommerce_admin_dashboard_recent_reviews', $comment->post_title, $comment ); $rating = intval( get_comment_meta( $comment->comment_ID, 'rating', true ) ); /* translators: %s: rating */ echo '<div class="star-rating"><span style="width:' . esc_attr( $rating * 20 ) . '%">' . sprintf( esc_html__( '%s out of 5', 'woocommerce' ), esc_html( $rating ) ) . '</span></div>'; /* translators: %s: review author */