Created
October 31, 2018 16:27
-
-
Save jchristopher/aedd1edbedaa6551dd2883db0cfbe8fb to your computer and use it in GitHub Desktop.
Customize OrganizeWP Taxonomy registration object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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