Create a gist now

Instantly share code, notes, and snippets.

@yoren /functions.php
Last active Aug 15, 2016

Changing arguments for the built-in taxonomies in WordPress
<?php
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