Expand theme prefix and clean up file structure

This commit is contained in:
Brian Miyaji
2014-01-07 17:44:33 +11:00
parent 66c1639e7e
commit 0dd53482b6
40 changed files with 1838 additions and 1851 deletions

View File

@@ -1,10 +1,10 @@
<?php
function sp_position_term_init() {
function sportspress_position_term_init() {
$name = __( 'Positions', 'sportspress' );
$singular_name = __( 'Position', 'sportspress' );
$lowercase_name = __( 'position', 'sportspress' );
$object_type = array( 'sp_player' );
$labels = sp_tax_labels( $name, $singular_name, $lowercase_name );
$labels = sportspress_get_term_labels( $name, $singular_name, $lowercase_name );
$args = array(
'label' => $name,
'labels' => $labels,
@@ -15,4 +15,4 @@ function sp_position_term_init() {
register_taxonomy( 'sp_position', $object_type, $args );
register_taxonomy_for_object_type( 'sp_position', 'sp_player' );
}
add_action( 'init', 'sp_position_term_init' );
add_action( 'init', 'sportspress_position_term_init' );