Created
July 11, 2019 22:44
-
-
Save brandondove/586daf3a0691a1ca03a45d8a9687819a 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 | |
/** | |
* Allows you to run new code during the custom post type registration | |
* | |
* @return void | |
*/ | |
function example_ads_init() { | |
register_taxonomy( | |
'ads-formats', | |
'ads', | |
array( | |
'labels' => array( | |
'name' => 'Ad Formats', | |
'singular_name' => 'Ad Format', | |
), | |
) | |
); | |
} | |
add_action( 'ads_init', 'example_ads_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment