PluginProbe
WP Ultimate Post Grid / 1.6
WP Ultimate Post Grid v1.6
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | helpers/meta_box.php +1 -35 2.01.6 View file →
@@ -4,9 +4,8 @@
4 4
5 5 public function __construct()
6 6 {
7 7 add_action( 'admin_init', array( $this, 'add_meta_box' ), 10 );
8 - add_action( 'admin_init', array( $this, 'add_meta_box_general' ), 11 );
9 8 add_action( 'admin_init', array( $this, 'add_meta_box_data_source' ), 12 );
10 9 add_action( 'admin_init', array( $this, 'add_meta_box_filter' ), 14 );
11 10 add_action( 'admin_init', array( $this, 'add_meta_box_grid' ), 16 );
12 11 add_action( 'admin_init', array( $this, 'add_meta_box_pagination' ), 18 );
@@ -34,20 +33,8 @@
34 33 );
35 34 }
36 35 }
37 36
38 - public function add_meta_box_general()
39 - {
40 - add_meta_box(
41 - 'wpupg_meta_box_general',
42 - __( 'General', 'wp-ultimate-post-grid' ),
43 - array( $this, 'meta_box_general' ),
44 - WPUPG_POST_TYPE,
45 - 'normal',
46 - 'high'
47 - );
48 - }
49 -
50 37 public function add_meta_box_data_source()
51 38 {
52 39 add_meta_box(
53 40 'wpupg_meta_box_data_source',
@@ -58,19 +45,10 @@
58 45 'high'
59 46 );
60 47
61 48 add_meta_box(
62 - 'wpupg_meta_box_data_source_terms',
63 - __( 'Data Source', 'wp-ultimate-post-grid' ),
64 - array( $this, 'meta_box_data_source_terms' ),
65 - WPUPG_POST_TYPE,
66 - 'normal',
67 - 'high'
68 - );
69 -
70 - add_meta_box(
71 49 'wpupg_meta_box_limit_posts',
72 - __( 'Limit Items', 'wp-ultimate-post-grid' ),
50 + __( 'Limit Posts', 'wp-ultimate-post-grid' ),
73 51 array( $this, 'meta_box_limit_posts' ),
74 52 WPUPG_POST_TYPE,
75 53 'normal',
76 54 'high'
@@ -142,24 +120,12 @@
142 120 $grid = new WPUPG_Grid( $post );
143 121 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_premium_only.php' );
144 122 }
145 123
146 - public function meta_box_general( $post )
147 - {
148 - $grid = new WPUPG_Grid( $post );
149 - include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_general.php' );
150 - }
151 -
152 124 public function meta_box_data_source( $post )
153 125 {
154 126 $grid = new WPUPG_Grid( $post );
155 127 include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source.php' );
156 - }
157 -
158 - public function meta_box_data_source_terms( $post )
159 - {
160 - $grid = new WPUPG_Grid( $post );
161 - include( WPUltimatePostGrid::get()->coreDir . '/helpers/meta_boxes/meta_box_data_source_terms.php' );
162 128 }
163 129
164 130 public function meta_box_limit_posts( $post )
165 131 {