Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created September 24, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/ebe8850e9df7fa3b81782cefb49f43e3 to your computer and use it in GitHub Desktop.
Save plugin-republic/ebe8850e9df7fa3b81782cefb49f43e3 to your computer and use it in GitHub Desktop.
<?php
/**
* Prevent some field types from being displayed in order data
*/
function prefix_hidden_group_types_in_order( $group_types ) {
$group_types = array( 'calculation' );
return $group_types;
}
add_filter( 'pewc_hidden_group_types_in_order', 'prefix_hidden_group_types_in_order' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment