Expand theme prefix and clean up file structure
This commit is contained in:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user