PluginProbe
Team Showcase / 1.8
Team Showcase v1.8
trunk 1.0 1.1 1.11 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.22.0 1.22.1 1.22.10 1.22.12 1.22.13 1.22.14 All 49 releases
team / includes / team-version-update.php

team-version-update.php in Team Showcase 1.8, at includes/team-version-update.php

82 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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();