Add prepend and append options to player metrics
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user