Skip to content

Instantly share code, notes, and snippets.

Last active Apr 20, 2020
What would you like to do?
Changing arguments for the built-in taxonomies in WordPress
function ofix_register_tax_args( $args, $taxonomy, $object_type ) {
if ( 'link_category' === $taxonomy ) {
$args['public'] = true;
$args['query_var'] = true;
return $args;
add_filter( 'register_taxonomy_args', 'ofix_register_tax_args', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment