YourPlugins

Show or hide the calculator

Part of Products and publishing.

All docs

If you want to show or hide the calculator on the product page, use yps_calcsheet_filter_display_calculator.

This filter runs before the calculator app is rendered. Return false to hide the calculator or true to keep it visible.

Example:

function custom_yps_calcsheet_filter_display_calculator($display, $productId, $simulator){
    return false; // false = hide the calculator, true = show the calculator
}
add_filter('yps_calcsheet_filter_display_calculator', 'custom_yps_calcsheet_filter_display_calculator', 10, 3);