Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// Use this if you are not using calculation fields
add_filter( 'pewc_show_calculation_params', '__return_false' );
// Use this if you are not using any fields with options, e.g. radio, select
add_filter( 'pewc_show_option_field_params', '__return_false' );
// Use this if you are not using information fields
add_filter( 'pewc_show_information_params', '__return_false' );
// Use this if you are not using checkbox group fields
add_filter( 'pewc_show_checkbox_group_params', '__return_false' );
// Use this if you are not using child products fields
add_filter( 'pewc_show_products_params', '__return_false' );
// Use this if you are not using image swatch fields
add_filter( 'pewc_show_image_swatch_params', '__return_false' );
// Use this if you are not using upload fields
add_filter( 'pewc_show_upload_params', '__return_false' );
// Use this if you are not using text fields with character parameters
add_filter( 'pewc_show_character_params', '__return_false' );
// Use this if you are not using number fields
add_filter( 'pewc_show_number_params', '__return_false' );
// Use this if you are not using date fields
add_filter( 'pewc_show_date_params', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment