Activate EOS and placeholder table for single team stats

This commit is contained in:
ThemeBoy
2013-12-02 00:45:53 +11:00
parent 2ceb0c53a3
commit f46d3f0a49
5 changed files with 154 additions and 33 deletions

View File

@@ -122,8 +122,12 @@ function sp_save_post( $post_id ) {
if ( !isset( $_POST['sportspress_nonce'] ) || ! wp_verify_nonce( $_POST['sportspress_nonce'], plugin_basename( __FILE__ ) ) ) return $post_id;
switch ( $_POST['post_type'] ):
case ( 'sp_team' ):
// Update stats
update_post_meta( $post_id, 'sp_stats', sp_array_value( $_POST, 'sp_stats', array() ) );
break;
case ( 'sp_event' ):
// Get results