Docs
Review Next Pro for WooCommerce Documentation
Developer Reference
Hooks & Filters
Updated October 30, 2026
3 min read
Feature filters#
All three Pro Settings values can be overridden in code. Each filter receives the saved setting as its default.
Filter Receives Returns Default revnextwoopro_visitor_counter_enabledbool $enabledWhether the product view counter counts and displays views The “Product view counter” setting revnextwoopro_location_enabledbool $enabledWhether reviewers may share their location and locations are displayed The “Reviewer location” setting revnextwoopro_reviews_per_pageint $per_pageReviews on the first page and in each Load More batch (minimum 1) The “Reviews per Load More batch” setting (5)
// Hide the view counter on a specific product.
add_filter( 'revnextwoopro_visitor_counter_enabled', function ( $enabled ) {
return is_product() && 123 === get_the_ID() ? false : $enabled;
} );
// Show 10 reviews per batch.
add_filter( 'revnextwoopro_reviews_per_page', function () {
return 10;
} );
Licensing filters and constants#
Hook or constant Purpose revnextwoopro_storeengine_store_url (filter) / REVIEW_NEXT_PRO_STOREENGINE_STORE_URL (constant)The store that licensing and updates talk to. Default https://technoleet.dev. Only change this if support asks you to. revnextwoopro_storeengine_product_id (filter) / REVIEW_NEXT_PRO_STOREENGINE_PRODUCT_ID (constant)The StoreEngine product ID of Review Next Pro. Returning 0 disables licensing (Pro stays locked). revnextwoopro_store_dashboard_url (filter)The “manage your license” link shown on the Pro License page. Default https://technoleet.dev/dashboard/license-keys/. revnextwoopro_storeengine_allow_local (filter)Whether activation is allowed on local hosts such as .test and localhost. Default true.
// Refuse license activation on local development hosts.
add_filter( 'revnextwoopro_storeengine_allow_local', '__return_false' );
Helper function#
if ( function_exists( 'revnextwoopro_is_active' ) && revnextwoopro_is_active() ) {
// The free plugin passes the version check and the Pro license is valid.
}
revnextwoopro_is_active() reads local license state only; it never calls the license server.
Hooks Pro uses from the free plugin#
Pro relies on these free-plugin extension points (Review Next for WooCommerce 1.0.7+). They are useful if you build your own add-on or template override:
Hook Type How Pro uses it revnextwoo_reviews_per_pageFilter Limits the free review list to the first batch while Pro is active. revnextwoo_review_card_after_metaAction (receives WP_Comment $review) Prints the reviewer location on every review card. revnextwoo_get_review_query_args(), revnextwoo_count_reviews(), revnextwoo_render_review_item()Functions Query, count and render review batches in the visitor’s sort order.
AJAX actions#
Action Who Purpose wp_ajax_revnextwoopro_load_reviews / wp_ajax_nopriv_revnextwoopro_load_reviewsAny visitor (nonce revnextwoopro_front_nonce) Returns the next batch of rendered review cards. Parameters: product_id, offset, sort. wp_ajax_revnextwoopro_get_chart_dataAdministrators (nonce revnextwoopro_analytics_nonce) Reviews Overview chart data for a period (1month, 6months, 1year). wp_ajax_revnextwoopro_get_review_heatmapAdministrators (nonce revnextwoopro_analytics_nonce) Product review heatmap data for the current year.
Data keys#
Key Type Content revnextwoopro_settingsOption Array with visitor_counter, reviewer_location, reviews_per_page. _revnextwoopro_views_30dProduct post meta Day (Ymd) => views map for the rolling 30-day window. revnextwoopro_locationComment meta Array with city and country. revnextwoopro_analytics_*Transients Hourly cached analytics aggregates.
CSS hooks for styling#
Class Element .revnextwoopro-visitor-counterThe “Viewed N times” paragraph .revnextwoopro-review-locationThe location span on a review card (also carries .review-location) .revnextwoopro-consentThe location consent label on the review form .revnextwoopro-load-more-wrap / .revnextwoopro-load-moreThe Load More wrapper and button