-
-
Save peterwilsoncc/7e9035d2130ca9cd3a8410a59359dd9f to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Plugin name: PWCC Testing Taxos | |
*/ | |
// Custom post type for testing page ordering plugin. | |
// return; | |
add_action( | |
'init', | |
function() { | |
// Register my test taxonomy. | |
register_taxonomy( | |
'pwcc_test_taxonomy', | |
'post', | |
array( | |
'hierarchical' => false, | |
'labels' => array( | |
'name' => 'PWCC Test Taxo', | |
'singular_name' => 'PWCC Test Taxo', | |
), | |
'public' => true, | |
'default_term' => array( | |
'name' => 'PWCC Test Term', | |
'slug' => 'pwcc-test-term', | |
), | |
) | |
); | |
// Deregister my test taxonomy. | |
unregister_taxonomy( 'pwcc_test_taxonomy' ); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment