Use filtered function to check if sp post type
This commit is contained in:
@@ -159,7 +159,7 @@ function sportspress_gettext( $translated_text, $untranslated_text, $domain ) {
|
|||||||
endswitch;
|
endswitch;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if ( in_array( $typenow, array( 'sp_event', 'sp_team', 'sp_player', 'sp_list', 'sp_staff' ) ) ):
|
if ( is_sp_post_type( $typenow ) ):
|
||||||
switch ( $untranslated_text ):
|
switch ( $untranslated_text ):
|
||||||
case 'Author':
|
case 'Author':
|
||||||
$translated_text = __( 'User', 'sportspress' );
|
$translated_text = __( 'User', 'sportspress' );
|
||||||
|
|||||||
Reference in New Issue
Block a user