Add details section to player edit page showing number and custom fields

This commit is contained in:
Brian Miyaji
2014-01-06 15:26:25 +11:00
parent 5b0e30221f
commit 2ededfdfe5
5 changed files with 86 additions and 17 deletions

View File

@@ -235,6 +235,12 @@ function sp_save_post( $post_id ) {
// Update team array
sp_update_post_meta_recursive( $post_id, 'sp_team', sp_array_value( $_POST, 'sp_team', array() ) );
// Update player number
update_post_meta( $post_id, 'sp_number', sp_array_value( $_POST, 'sp_number', '' ) );
// Update player details array
update_post_meta( $post_id, 'sp_details', sp_array_value( $_POST, 'sp_details', array() ) );
break;
case ( 'sp_staff' ):