Skip to content

Instantly share code, notes, and snippets.

@raducretu
Last active January 27, 2020 10:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raducretu/fdc238a90710ed3623c26d89fef2a087 to your computer and use it in GitHub Desktop.
Save raducretu/fdc238a90710ed3623c26d89fef2a087 to your computer and use it in GitHub Desktop.
Events Schedule Custom Taxonomy
add_action( 'init', 'wcs_register_custom_taxonomies' );
function wcs_register_custom_taxonomies(){
register_taxonomy(
'custom_tax',
'class',
array(
'label' => esc_html__( 'Custom Tax Name', 'text-domain' ),
'rewrite' => array( 'slug' => 'custom_tax_slug' )
)
);
}
@zenics
Copy link

zenics commented Oct 19, 2017

hey there, where do I add this code to? also is this going to be available on filters and builder?

@zenics
Copy link

zenics commented Oct 19, 2017

NM figured. Is there a way to change the order of it. I mean, as is now it shows as the last filter but I need that to be the second after the class types.

@flxlchr
Copy link

flxlchr commented Apr 9, 2019

You have to add this code in the functions.php of your child theme. And then you need to activate the display of your new filter in the schedule builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment