Add singular and timed options to player performance during sport

installation
This commit is contained in:
Brian Miyaji
2017-01-08 18:25:32 +11:00
parent 9451293b94
commit 3f26d287fc

View File

@@ -157,12 +157,14 @@ class SP_Admin_Sports {
if ( isset( $performance['position'] ) ) {
wp_set_object_terms( $id, $performance['position'], 'sp_position', false );
}
update_post_meta( $id, 'sp_singular', sp_array_value( $performance, 'singular', null ) );
update_post_meta( $id, 'sp_icon', sp_array_value( $performance, 'icon', null ) );
update_post_meta( $id, 'sp_color', sp_array_value( $performance, 'color', null ) );
update_post_meta( $id, 'sp_section', sp_array_value( $performance, 'section', -1 ) );
update_post_meta( $id, 'sp_format', sp_array_value( $performance, 'format', 'number' ) );
update_post_meta( $id, 'sp_equation', sp_array_value( $performance, 'equation', null ) );
update_post_meta( $id, 'sp_precision', sp_array_value( $performance, 'precision', 0 ) );
update_post_meta( $id, 'sp_timed', sp_array_value( $performance, 'timed', null ) );
$i ++;
}