Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created October 31, 2018 16:27
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 jchristopher/aedd1edbedaa6551dd2883db0cfbe8fb to your computer and use it in GitHub Desktop.
Save jchristopher/aedd1edbedaa6551dd2883db0cfbe8fb to your computer and use it in GitHub Desktop.
Customize OrganizeWP Taxonomy registration object
<?php
// Customize the object type for the 'author' taxonomy.
add_filter( 'organizewp_taxonomy_object_type_author', function( $object_type ) {
// Register the author taxonomy to the book post type.
return array( 'book' );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment