Add prepend and append options to player metrics

This commit is contained in:
Brian Miyaji
2015-12-21 14:32:57 +11:00
parent d031ab7fa1
commit 0fae62771a
7 changed files with 112 additions and 4 deletions

View File

@@ -449,6 +449,28 @@ if ( !function_exists( 'sp_get_post_order' ) ) {
}
}
if ( !function_exists( 'sp_get_post_prepend' ) ) {
function sp_get_post_prepend( $post_id ) {
$prepend = get_post_meta ( $post_id, 'sp_prepend', true );
if ( $prepend ):
return $prepend;
else:
return '—';
endif;
}
}
if ( !function_exists( 'sp_get_post_append' ) ) {
function sp_get_post_append( $post_id ) {
$append = get_post_meta ( $post_id, 'sp_append', true );
if ( $append ):
return $append;
else:
return '—';
endif;
}
}
if ( !function_exists( 'sp_dropdown_statuses' ) ) {
function sp_dropdown_statuses( $args = array() ) {
$defaults = array(