Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created January 10, 2020 10:48
Show Gist options
  • Save plugin-republic/bcccc847b935275ab2fc4791521f9a7f to your computer and use it in GitHub Desktop.
Save plugin-republic/bcccc847b935275ab2fc4791521f9a7f to your computer and use it in GitHub Desktop.
<?php
/**
* Hide certain field types in the cart and checkout
*/
function tester_hidden_field_types_in_cart( $field_types ) {
$field_types = array( 'calculation', 'number' );
return $field_types;
}
add_filter( 'pewc_hidden_field_types_in_cart', 'tester_hidden_field_types_in_cart' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment