Add actions, filters, hooks, and scripts

This commit is contained in:
Takumi
2013-07-24 19:09:02 +10:00
parent e3fb4c69dd
commit 3cade7da5d
17 changed files with 180 additions and 94 deletions

View File

@@ -38,16 +38,28 @@ function sp_player_custom_columns( $column ) {
if ( has_post_thumbnail() ) the_post_thumbnail( 'sp_icon' );
break;
case 'sp_position':
the_terms( $post_id, 'sp_position' );
if ( get_the_terms ( $post_id, 'sp_position' ) )
the_terms( $post_id, 'sp_position' );
else
echo '—';
break;
case 'sp_league':
the_terms( $post_id, 'sp_league' );
if ( get_the_terms ( $post_id, 'sp_league' ) )
the_terms( $post_id, 'sp_league' );
else
echo '—';
break;
case 'sp_season':
the_terms( $post_id, 'sp_season' );
if ( get_the_terms ( $post_id, 'sp_season' ) )
the_terms( $post_id, 'sp_season' );
else
echo '—';
break;
case 'sp_sponsor':
the_terms( $post_id, 'sp_sponsor' );
if ( get_the_terms ( $post_id, 'sp_sponsor' ) )
the_terms( $post_id, 'sp_sponsor' );
else
echo '—';
break;
endswitch;
endif;