@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | add_action( 'admin_menu', array( $this, 'menu_page' ) ); |
54 | 54 | add_action( 'admin_menu', array( $this, 'sub_menu_page' ) ); |
55 | 55 | add_filter( 'set-screen-option', array( $this, 'set_screen' ), 10, 3 ); |
56 | - * |
|
57 | - */ |
|
56 | + * |
|
57 | + */ |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | //Set screen option |
104 | 104 | public function set_screen($status, $option, $value) { |
105 | 105 | |
106 | - if ( 'option_name_per_page' == $option ) return $value; // Related to PLUGIN_TABLE() |
|
107 | - //return $status; |
|
106 | + if ( 'option_name_per_page' == $option ) return $value; // Related to PLUGIN_TABLE() |
|
107 | + //return $status; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | echo '<textarea name="settings_field_name" id="settings_field_name" value="' . get_option('settings_field_name') . '>'. __( 'Enter Value', 'textdomain' ) . '</textarea>'; |
202 | 202 | echo '<select name="settings_field_name" id="settings_field_name"><option value="value" ' . selected( 'value', get_option('settings_field_name'), false) . '>Value</option></select>'; |
203 | 203 | echo '<input type="checkbox" id="settings_field_name" name="settings_field_name" value="1"' . checked( 1, get_option('settings_field_name'), false ) . '/>'; |
204 | - */ |
|
204 | + */ |
|
205 | 205 | } |
206 | 206 | } |
207 | 207 | } ?> |
@@ -29,12 +29,12 @@ |
||
29 | 29 | /** |
30 | 30 | $user_args = $this->user_args($paged); |
31 | 31 | $the_query = new WP_User_Query( $user_args ); |
32 | - */ |
|
32 | + */ |
|
33 | 33 | |
34 | 34 | // The Loop |
35 | 35 | if ( $the_query->have_posts() ) { |
36 | 36 | while ( $the_query->have_posts() ) { |
37 | - $the_query->the_post(); |
|
37 | + $the_query->the_post(); |
|
38 | 38 | // Do Stuff |
39 | 39 | } // end while |
40 | 40 | } // endif |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | public function installation() { |
12 | 12 | |
13 | 13 | /** |
14 | - * |
|
15 | - * Plugin installation |
|
16 | - * |
|
14 | + * |
|
15 | + * Plugin installation |
|
16 | + * |
|
17 | 17 | if (class_exists('PLUGIN_INSTALL')) { |
18 | 18 | |
19 | 19 | $install = new PLUGIN_INSTALL(); |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | ); |
28 | 28 | $install->execute(); |
29 | 29 | } |
30 | - * |
|
31 | - */ |
|
30 | + * |
|
31 | + */ |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | |
@@ -54,9 +54,9 @@ discard block |
||
54 | 54 | public function db_install() { |
55 | 55 | |
56 | 56 | /** |
57 | - * |
|
58 | - * Install database by defining your SQL |
|
59 | - * |
|
57 | + * |
|
58 | + * Install database by defining your SQL |
|
59 | + * |
|
60 | 60 | if ( class_exists( 'PLUGIN_DB' ) ) { |
61 | 61 | $db = new PLUGIN_DB(); |
62 | 62 | $db->table = 'plugin_db_table_name'; |
@@ -65,28 +65,28 @@ discard block |
||
65 | 65 | UNIQUE KEY ID (ID)"; |
66 | 66 | $db->build(); |
67 | 67 | } |
68 | - * |
|
69 | - * |
|
70 | - * Optionally check if the DB table is installed correctly |
|
71 | - * |
|
68 | + * |
|
69 | + * |
|
70 | + * Optionally check if the DB table is installed correctly |
|
71 | + * |
|
72 | 72 | if (get_option('_plugin_db_exist') == '0') { |
73 | 73 | add_action( 'admin_notices', array( $this, 'db_error_msg' ) ); |
74 | 74 | } |
75 | - * |
|
76 | - */ |
|
75 | + * |
|
76 | + */ |
|
77 | 77 | |
78 | 78 | /** |
79 | - * |
|
80 | - * Install DB options |
|
81 | - * |
|
79 | + * |
|
80 | + * Install DB options |
|
81 | + * |
|
82 | 82 | $options = array( |
83 | 83 | array( 'option_name', '__value__' ), |
84 | 84 | ); |
85 | 85 | foreach ($options as $value) { |
86 | 86 | update_option( $value[0], $value[1] ); |
87 | 87 | } |
88 | - * |
|
89 | - */ |
|
88 | + * |
|
89 | + */ |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | public function db_uninstall() { |
106 | 106 | |
107 | 107 | /** |
108 | - * |
|
109 | - * Important table name declarition |
|
110 | - * |
|
108 | + * |
|
109 | + * Important table name declarition |
|
110 | + * |
|
111 | 111 | $tableName = 'plugin_db_table_name'; |
112 | 112 | |
113 | 113 | global $wpdb; |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | foreach ($options as $value) { |
119 | 119 | delete_option($value); |
120 | 120 | } |
121 | - * |
|
122 | - */ |
|
121 | + * |
|
122 | + */ |
|
123 | 123 | } |
124 | 124 | |
125 | 125 |