| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* @Author ParaTheme |
| 5 |
* @Folder Team/Includes |
| 6 |
* @version 3.0.5 |
| 7 |
|
| 8 |
* Copyright: 2015 ParaTheme |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined('ABSPATH')) exit; // if direct access |
| 12 |
|
| 13 |
class class_team_version_update { |
| 14 |
|
| 15 |
|
| 16 |
public function __construct(){ |
| 17 |
|
| 18 |
//add_shortcode( 'team', array( $this, 'team_display' ) ); |
| 19 |
//add_action( 'admin_menu', array( $this, 'admin_menu' ), 12 ); |
| 20 |
//add_action('admin_menu', array($this, 'create_menu')); |
| 21 |
} |
| 22 |
|
| 23 |
public function team_member_meta_update(){ |
| 24 |
|
| 25 |
$team_version = get_option('team_version'); |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
} |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
public function team_options_update(){ |
| 34 |
|
| 35 |
$team_version = get_option('team_version'); |
| 36 |
$team_member_social_field = get_option( 'team_member_social_field' ); |
| 37 |
|
| 38 |
|
| 39 |
if(empty($team_member_social_field)) |
| 40 |
{ |
| 41 |
$team_member_social_field = array( |
| 42 |
"facebook"=>"facebook", |
| 43 |
"twitter"=>"twitter", |
| 44 |
"googleplus"=>"googleplus", |
| 45 |
"pinterest"=>"pinterest", |
| 46 |
); |
| 47 |
} |
| 48 |
|
| 49 |
$team_member_social_field_new_field =array( |
| 50 |
"website"=>"website", |
| 51 |
"email"=>"email", |
| 52 |
"skype"=>"skype" |
| 53 |
); |
| 54 |
|
| 55 |
|
| 56 |
$team_member_social_field = array_merge($team_member_social_field,$team_member_social_field_new_field); |
| 57 |
update_option('team_member_social_field', $team_member_social_field); |
| 58 |
|
| 59 |
} |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
public function team_update_by_version_3_0_5(){ |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
delete_option( 'team_themes_list' ); |
| 68 |
|
| 69 |
|
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
} |
| 81 |
|
| 82 |
new class_team_version_update(); |