Begin SportsPress

Add basic helpers, post types and taxonomies.
This commit is contained in:
Takumi
2013-07-24 13:44:11 +10:00
parent 1b74053a31
commit e3fb4c69dd
23 changed files with 1595 additions and 1 deletions

17
sponsor.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
function sp_sponsor_tax_init() {
$name = __( 'Sponsors', 'sportspress' );
$singular_name = __( 'Sponsor', 'sportspress' );
$object_type = array( 'sp_team', 'sp_event', 'sp_player', 'sp_tournament', 'sp_venue' );
$labels = sp_get_tax_labels( $name, $singular_name );
$args = array(
'label' => $name,
'labels' => $labels,
'public' => true,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'sponsor' ),
);
register_taxonomy( 'sp_sponsor', $object_type, $args );
}
add_action( 'init', 'sp_sponsor_tax_init' );
?>