Show IDs by 99 Robots - Version 1.1.8

Version Description

2021-09-15 * Made compatible with WordPress 5.8.1

Download this release

Release Info

Developer 99robots
Plugin Icon 128x128 Show IDs by 99 Robots
Version 1.1.8
Comparing to
See all releases

Code changes from version 1.1.7 to 1.1.8

Files changed (2) hide show
  1. readme.txt +109 -106
  2. wpsite-show-ids.php +144 -144
readme.txt CHANGED
@@ -1,106 +1,109 @@
1
- === Show IDs by 99 Robots ===
2
- Contributors: 99robots, charliepatel, DraftPress
3
- Donate link:
4
- Tags: ID, show id, display id, show post id, display post id, reveal id, reveal post id, post, category, media, page, post type, post id, category id, media id, page id, post type id, comments, comment id, custom post type id, link id, show, display, reveal, taxonomy, taxonomy id, wordpress id, wp id, user, user id, tag, tag id, wp-admin
5
- Requires at least: 4.0
6
- Tested up to: 5.7.2
7
- Stable tag: 1.1.7
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- The **Show IDs** plugin displays the ID of all posts, categories, pages, taxonomies, users, tags, and more.
12
-
13
- == Description ==
14
-
15
- **Show IDs** by 99 Robots is super light-weight and does not need any configuration or separate options page. Simply activate the plugin and IDs will be displayed on all admin pages.
16
-
17
- * Light-weight with no options page required
18
- * Adds a new column on admin page to display IDs of all posts, pages, categories, and more
19
- * Supports custom post types and custom taxonomies
20
-
21
- = Features =
22
-
23
- The Show ID plugin will reveal IDs for the following:
24
-
25
- * posts
26
- * pages
27
- * categories
28
- * tags
29
- * links
30
- * media
31
- * users
32
- * comments
33
- * link categories
34
- * custom taxonomies
35
- * custom post types
36
-
37
- Also please check out our other [plugins](https://99robots.com/products/?utm_source=wprepo&utm_medium=show-ids&utm_campaign=desc) :)
38
-
39
- == Installation ==
40
-
41
- 1. Upload `wpsite-show-ids` to the `/wp-content/plugins/` directory
42
- 2. Activate the plugin through the 'Plugins' menu in WordPress
43
-
44
- You can install the **Show IDs** plugin from your WordPress Dashboard or manually via FTP.
45
-
46
- = From WordPress Dashboard =
47
-
48
- 1. Navigate to 'Plugins -> Add New' from your WordPress dashboard.
49
- 2. Search for `Show IDs` and install it.
50
- 3. Activate the plugin from Plugins menu.
51
- 4. Thats it! There is no option configuration or page required.
52
-
53
- = Manual Installation =
54
-
55
- 1. Download the plugin file: `wpsite-show-ids.zip`
56
- 2. Unzip the file
57
- 3. Upload the `wpsite-show-ids` folder to your `/wp-content/plugins` directory (do not rename the folder)
58
- 4. Activate the plugin from Plugins menu. There is no option configuration or page required.
59
-
60
- == Screenshots ==
61
-
62
- 1. IDs on the all posts page
63
-
64
- == Changelog ==
65
-
66
- = 1.1.7 = 2021-05-14
67
- * Made compatible with WordPress 5.7.2
68
-
69
- = 1.1.6 = 2020-12-29
70
- * Made compatible with WordPress 5.6
71
-
72
- = 1.1.5 = 2020-09-02
73
- * Made compatible with WordPress 5.5.1
74
-
75
- = 1.1.4 = 2020-05-04
76
- * Made compatible with WordPress 5.4.1
77
-
78
- = 1.1.3 = 2019-08-21
79
- * Made compatible with WordPress 5.2.2
80
-
81
- = 1.1.2 = 2017-06-11
82
- * Made compatible with WordPress 4.8
83
-
84
- = 1.1.1 = 2015-10-16
85
- * UPDATED: Banners and Icons
86
-
87
- = 1.1.0 = 2015-10-16
88
- * UPDATED: Readme file description
89
-
90
- = 1.0.5 =
91
- * FIXED: Post and Page taxonomies were not showing IDs properly on multisite installs
92
-
93
- = 1.0.4 =
94
- * Re-branded to 99 Robots
95
-
96
- = 1.0.3 =
97
- * Minor Updates
98
-
99
- = 1.0.2 =
100
- * Compatible with WordPress 4.1
101
-
102
- = 1.0.1 =
103
- * Minor Updates
104
-
105
- = 1.0 =
106
- * Initial Commit
 
 
 
1
+ === Show IDs by DraftPress ===
2
+ Contributors: 99robots, charliepatel, DraftPress
3
+ Donate link:
4
+ Tags: ID, show id, display id, show post id, display post id, reveal id, reveal post id, post, category, media, page, post type, post id, category id, media id, page id, post type id, comments, comment id, custom post type id, link id, show, display, reveal, taxonomy, taxonomy id, wordpress id, wp id, user, user id, tag, tag id, wp-admin
5
+ Requires at least: 4.9
6
+ Tested up to: 5.8.1
7
+ Stable tag: 1.1.8
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ The **Show IDs** plugin displays the ID of all posts, categories, pages, taxonomies, users, tags, and more.
12
+
13
+ == Description ==
14
+
15
+ **Show IDs** by DraftPress is super light-weight and does not need any configuration or separate options page. Simply activate the plugin and IDs will be displayed on all admin pages.
16
+
17
+ * Light-weight with no options page required
18
+ * Adds a new column on admin page to display IDs of all posts, pages, categories, and more
19
+ * Supports custom post types and custom taxonomies
20
+
21
+ = Features =
22
+
23
+ The Show ID plugin will reveal IDs for the following:
24
+
25
+ * posts
26
+ * pages
27
+ * categories
28
+ * tags
29
+ * links
30
+ * media
31
+ * users
32
+ * comments
33
+ * link categories
34
+ * custom taxonomies
35
+ * custom post types
36
+
37
+ Also please check out our other [plugins](https://draftpress.com/products/?utm_source=wprepo&utm_medium=show-ids&utm_campaign=desc) :)
38
+
39
+ == Installation ==
40
+
41
+ 1. Upload `wpsite-show-ids` to the `/wp-content/plugins/` directory
42
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
43
+
44
+ You can install the **Show IDs** plugin from your WordPress Dashboard or manually via FTP.
45
+
46
+ = From WordPress Dashboard =
47
+
48
+ 1. Navigate to 'Plugins -> Add New' from your WordPress dashboard.
49
+ 2. Search for `Show IDs` and install it.
50
+ 3. Activate the plugin from Plugins menu.
51
+ 4. Thats it! There is no option configuration or page required.
52
+
53
+ = Manual Installation =
54
+
55
+ 1. Download the plugin file: `wpsite-show-ids.zip`
56
+ 2. Unzip the file
57
+ 3. Upload the `wpsite-show-ids` folder to your `/wp-content/plugins` directory (do not rename the folder)
58
+ 4. Activate the plugin from Plugins menu. There is no option configuration or page required.
59
+
60
+ == Screenshots ==
61
+
62
+ 1. IDs on the all posts page
63
+
64
+ == Changelog ==
65
+
66
+ = 1.1.8 = 2021-09-15
67
+ * Made compatible with WordPress 5.8.1
68
+
69
+ = 1.1.7 = 2021-05-14
70
+ * Made compatible with WordPress 5.7.2
71
+
72
+ = 1.1.6 = 2020-12-29
73
+ * Made compatible with WordPress 5.6
74
+
75
+ = 1.1.5 = 2020-09-02
76
+ * Made compatible with WordPress 5.5.1
77
+
78
+ = 1.1.4 = 2020-05-04
79
+ * Made compatible with WordPress 5.4.1
80
+
81
+ = 1.1.3 = 2019-08-21
82
+ * Made compatible with WordPress 5.2.2
83
+
84
+ = 1.1.2 = 2017-06-11
85
+ * Made compatible with WordPress 4.8
86
+
87
+ = 1.1.1 = 2015-10-16
88
+ * UPDATED: Banners and Icons
89
+
90
+ = 1.1.0 = 2015-10-16
91
+ * UPDATED: Readme file description
92
+
93
+ = 1.0.5 =
94
+ * FIXED: Post and Page taxonomies were not showing IDs properly on multisite installs
95
+
96
+ = 1.0.4 =
97
+ * Re-branded to 99 Robots
98
+
99
+ = 1.0.3 =
100
+ * Minor Updates
101
+
102
+ = 1.0.2 =
103
+ * Compatible with WordPress 4.1
104
+
105
+ = 1.0.1 =
106
+ * Minor Updates
107
+
108
+ = 1.0 =
109
+ * Initial Commit
wpsite-show-ids.php CHANGED
@@ -1,144 +1,144 @@
1
- <?php
2
- /**
3
- * Plugin Name: Show IDs
4
- * Plugin URI: https://99robots.com/products/show-ids/
5
- * Description: Show IDs on all post, page and taxonomy pages.
6
- * Version: 1.1.7
7
- * Author: 99 Robots
8
- * Author URI: https://99robots.com
9
- * License: GPL2
10
- */
11
-
12
- class WPSite_Show_IDs
13
- {
14
-
15
- public function __construct()
16
- {
17
-
18
- add_action('admin_init', array($this, 'custom_objects'));
19
- add_action('admin_head', array($this, 'add_css'));
20
-
21
- // For Post Management
22
- add_filter('manage_posts_columns', array($this, 'add_column'));
23
- add_action('manage_posts_custom_column', array($this, 'add_value'), 10, 2);
24
-
25
- // For Page Management
26
- add_filter('manage_pages_columns', array($this, 'add_column'));
27
- add_action('manage_pages_custom_column', array($this, 'add_value'), 10, 2);
28
-
29
- // For Media Management
30
- add_filter('manage_media_columns', array($this, 'add_column'));
31
- add_action('manage_media_custom_column', array($this, 'add_value'), 10, 2);
32
-
33
- // For Link Management
34
- add_filter('manage_link-manager_columns', array($this, 'add_column'));
35
- add_action('manage_link_custom_column', array($this, 'add_value'), 10, 2);
36
-
37
- // For Category Management
38
- add_action('manage_edit-link-categories_columns', array($this, 'add_column'));
39
- add_filter('manage_link_categories_custom_column', array($this, 'add_return_value'), 10, 3);
40
-
41
- // For User Management
42
- add_action('manage_users_columns', array($this, 'add_column'));
43
- add_filter('manage_users_custom_column', array($this, 'add_return_value'), 10, 3);
44
-
45
- // For Comment Management
46
- add_action('manage_edit-comments_columns', array($this, 'add_column'));
47
- add_action('manage_comments_custom_column', array($this, 'add_value'), 10, 2);
48
- }
49
-
50
- /**
51
- * Hooks to the 'admin_init'
52
- *
53
- * @return void
54
- */
55
- public function custom_objects()
56
- {
57
-
58
- // For Custom Taxonomies
59
- $taxonomies = get_taxonomies(array('public' => true), 'names');
60
- foreach ($taxonomies as $custom_taxonomy) {
61
- if (isset($custom_taxonomy)) {
62
- add_action('manage_edit-' . $custom_taxonomy . '_columns', array($this, 'add_column'));
63
- add_filter('manage_' . $custom_taxonomy . '_custom_column', array($this, 'add_return_value'), 10, 3);
64
- }
65
- }
66
-
67
- // For Custom Post Types
68
- $post_types = get_post_types(array('public' => true), 'names');
69
- foreach ($post_types as $post_type) {
70
- if (isset($post_type)) {
71
- add_action('manage_edit-' . $post_type . '_columns', array($this, 'add_column'));
72
- add_filter('manage_' . $post_type . '_custom_column', array($this, 'add_return_value'), 10, 3);
73
- }
74
- }
75
- }
76
-
77
- /**
78
- * Hooks to 'admin_head'
79
- *
80
- * @return void
81
- */
82
- public function add_css()
83
- {
84
- ?>
85
- <style type="text/css">
86
- #wpsite-show-ids {
87
- width: 50px;
88
- }
89
- </style>
90
- <?php
91
- }
92
-
93
- /**
94
- * Adds column to edit screen
95
- *
96
- * @param mixed $cols
97
- * @return void
98
- */
99
- public function add_column($cols)
100
- {
101
-
102
- $cols['wpsite-show-ids'] = 'ID';
103
-
104
- return $cols;
105
- }
106
-
107
- /**
108
- * Adds id value
109
- *
110
- * @param mixed $column_name
111
- * @param mixed $id
112
- * @return void
113
- */
114
- public function add_value($column_name, $id)
115
- {
116
- if ('wpsite-show-ids' === $column_name) {
117
- echo $id;
118
- }
119
- }
120
-
121
- /**
122
- * Adds id value
123
- *
124
- * @param mixed $value
125
- * @param mixed $column_name
126
- * @param mixed $id
127
- * @return void
128
- */
129
- public function add_return_value($value, $column_name, $id)
130
- {
131
-
132
- if ('wpsite-show-ids' === $column_name) {
133
- $value = $id;
134
- }
135
-
136
- return $value;
137
- }
138
- }
139
-
140
- /**
141
- * Start
142
- * @var WPSite_Show_IDs
143
- */
144
- new WPSite_Show_IDs;
1
+ <?php
2
+ /**
3
+ * Plugin Name: Show IDs
4
+ * Plugin URI: https://draftpress.com/products
5
+ * Description: Show IDs on all post, page and taxonomy pages.
6
+ * Version: 1.1.8
7
+ * Author: DraftPress
8
+ * Author URI: https://draftpress.com/
9
+ * License: GPL2
10
+ */
11
+
12
+ class WPSite_Show_IDs
13
+ {
14
+
15
+ public function __construct()
16
+ {
17
+
18
+ add_action('admin_init', array($this, 'custom_objects'));
19
+ add_action('admin_head', array($this, 'add_css'));
20
+
21
+ // For Post Management
22
+ add_filter('manage_posts_columns', array($this, 'add_column'));
23
+ add_action('manage_posts_custom_column', array($this, 'add_value'), 10, 2);
24
+
25
+ // For Page Management
26
+ add_filter('manage_pages_columns', array($this, 'add_column'));
27
+ add_action('manage_pages_custom_column', array($this, 'add_value'), 10, 2);
28
+
29
+ // For Media Management
30
+ add_filter('manage_media_columns', array($this, 'add_column'));
31
+ add_action('manage_media_custom_column', array($this, 'add_value'), 10, 2);
32
+
33
+ // For Link Management
34
+ add_filter('manage_link-manager_columns', array($this, 'add_column'));
35
+ add_action('manage_link_custom_column', array($this, 'add_value'), 10, 2);
36
+
37
+ // For Category Management
38
+ add_action('manage_edit-link-categories_columns', array($this, 'add_column'));
39
+ add_filter('manage_link_categories_custom_column', array($this, 'add_return_value'), 10, 3);
40
+
41
+ // For User Management
42
+ add_action('manage_users_columns', array($this, 'add_column'));
43
+ add_filter('manage_users_custom_column', array($this, 'add_return_value'), 10, 3);
44
+
45
+ // For Comment Management
46
+ add_action('manage_edit-comments_columns', array($this, 'add_column'));
47
+ add_action('manage_comments_custom_column', array($this, 'add_value'), 10, 2);
48
+ }
49
+
50
+ /**
51
+ * Hooks to the 'admin_init'
52
+ *
53
+ * @return void
54
+ */
55
+ public function custom_objects()
56
+ {
57
+
58
+ // For Custom Taxonomies
59
+ $taxonomies = get_taxonomies(array('public' => true), 'names');
60
+ foreach ($taxonomies as $custom_taxonomy) {
61
+ if (isset($custom_taxonomy)) {
62
+ add_action('manage_edit-' . $custom_taxonomy . '_columns', array($this, 'add_column'));
63
+ add_filter('manage_' . $custom_taxonomy . '_custom_column', array($this, 'add_return_value'), 10, 3);
64
+ }
65
+ }
66
+
67
+ // For Custom Post Types
68
+ $post_types = get_post_types(array('public' => true), 'names');
69
+ foreach ($post_types as $post_type) {
70
+ if (isset($post_type)) {
71
+ add_action('manage_edit-' . $post_type . '_columns', array($this, 'add_column'));
72
+ add_filter('manage_' . $post_type . '_custom_column', array($this, 'add_return_value'), 10, 3);
73
+ }
74
+ }
75
+ }
76
+
77
+ /**
78
+ * Hooks to 'admin_head'
79
+ *
80
+ * @return void
81
+ */
82
+ public function add_css()
83
+ {
84
+ ?>
85
+ <style type="text/css">
86
+ #wpsite-show-ids {
87
+ width: 50px;
88
+ }
89
+ </style>
90
+ <?php
91
+ }
92
+
93
+ /**
94
+ * Adds column to edit screen
95
+ *
96
+ * @param mixed $cols
97
+ * @return void
98
+ */
99
+ public function add_column($cols)
100
+ {
101
+
102
+ $cols['wpsite-show-ids'] = 'ID';
103
+
104
+ return $cols;
105
+ }
106
+
107
+ /**
108
+ * Adds id value
109
+ *
110
+ * @param mixed $column_name
111
+ * @param mixed $id
112
+ * @return void
113
+ */
114
+ public function add_value($column_name, $id)
115
+ {
116
+ if ('wpsite-show-ids' === $column_name) {
117
+ echo $id;
118
+ }
119
+ }
120
+
121
+ /**
122
+ * Adds id value
123
+ *
124
+ * @param mixed $value
125
+ * @param mixed $column_name
126
+ * @param mixed $id
127
+ * @return void
128
+ */
129
+ public function add_return_value($value, $column_name, $id)
130
+ {
131
+
132
+ if ('wpsite-show-ids' === $column_name) {
133
+ $value = $id;
134
+ }
135
+
136
+ return $value;
137
+ }
138
+ }
139
+
140
+ /**
141
+ * Start
142
+ * @var WPSite_Show_IDs
143
+ */
144
+ new WPSite_Show_IDs;