rvp_available_roles Filters the role list shown in every role selector (meta box, quick edit, bulk variation, matrix, etc.). Return an associative array of slug => label.
add_filter( 'rvp_available_roles', function( $roles ) {
// Remove the 'subscriber' role from every RoleView selector.
unset( $roles['subscriber'] );
return $roles;
} );
rvp_show_404_for_hidden_product Return false to let the product page render normally for logged-out or unauthorized visitors instead of a 404. Useful when you want a custom “request access” landing page. Parameters: $show_404 (bool, default true), $product_id (int)
rvp_admin_can_see_hidden Return true to let shop managers and administrators preview hidden products on the storefront. Parameters: $bypass (bool, default false), $product_id (int)
rvp_excluded_product_ids Filters the array of product IDs excluded from storefront queries for the current user. Useful for plugin-level allow-lists or conditional overrides. Parameters: $excluded (int[]), $user_roles (string[])
rvp_visibility_query_args Filters the query args before they are merged into WooCommerce product queries. Parameters: $args (array), $visibility_mode (string)
rvp_discounted_price Filters the final discounted price before it is returned to WooCommerce. Parameters: $discounted (float), $price (float — original), $discount (array — rule applied)
rvp_locate_template Filters the resolved template path. Useful for plugins that need to inject their own template directory into the resolution chain. Parameters: $template (string — full path), $template_name (string)