Show IDs by 99 Robots - Version 1.1.3

Version Description

2019-08-21 * Made compatible with WordPress 5.2.2

Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

Files changed (3) hide show
  1. assets/icon-256x256.png +0 -0
  2. readme.txt +94 -91
  3. wpsite-show-ids.php +137 -137
assets/icon-256x256.png ADDED
Binary file
readme.txt CHANGED
@@ -1,91 +1,94 @@
1
- === Show IDs by 99 Robots ===
2
- Contributors: 99robots, kjbenk, charliepatel
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: 4.8.0
7
- Stable tag: 1.1.2
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.2 = 2017-06-11
67
- * Made compatible with WordPress 4.8
68
-
69
- = 1.1.1 = 2015-10-16
70
- * UPDATED: Banners and Icons
71
-
72
- = 1.1.0 = 2015-10-16
73
- * UPDATED: Readme file description
74
-
75
- = 1.0.5 =
76
- * FIXED: Post and Page taxonomies were not showing IDs properly on multisite installs
77
-
78
- = 1.0.4 =
79
- * Re-branded to 99 Robots
80
-
81
- = 1.0.3 =
82
- * Minor Updates
83
-
84
- = 1.0.2 =
85
- * Compatible with WordPress 4.1
86
-
87
- = 1.0.1 =
88
- * Minor Updates
89
-
90
- = 1.0 =
91
- * Initial Commit
 
 
 
1
+ === Show IDs by 99 Robots ===
2
+ Contributors: 99robots, charliepatel
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.2.2
7
+ Stable tag: 1.1.3
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.3 = 2019-08-21
67
+ * Made compatible with WordPress 5.2.2
68
+
69
+ = 1.1.2 = 2017-06-11
70
+ * Made compatible with WordPress 4.8
71
+
72
+ = 1.1.1 = 2015-10-16
73
+ * UPDATED: Banners and Icons
74
+
75
+ = 1.1.0 = 2015-10-16
76
+ * UPDATED: Readme file description
77
+
78
+ = 1.0.5 =
79
+ * FIXED: Post and Page taxonomies were not showing IDs properly on multisite installs
80
+
81
+ = 1.0.4 =
82
+ * Re-branded to 99 Robots
83
+
84
+ = 1.0.3 =
85
+ * Minor Updates
86
+
87
+ = 1.0.2 =
88
+ * Compatible with WordPress 4.1
89
+
90
+ = 1.0.1 =
91
+ * Minor Updates
92
+
93
+ = 1.0 =
94
+ * Initial Commit
wpsite-show-ids.php CHANGED
@@ -1,137 +1,137 @@
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.2
7
- * Author: 99 Robots
8
- * Author URI: https://99robots.com
9
- * License: GPL2
10
- */
11
-
12
- class WPSite_Show_IDs {
13
-
14
- public function __construct() {
15
-
16
- add_action( 'admin_init', array( $this, 'custom_objects' ) );
17
- add_action( 'admin_head', array( $this, 'add_css' ) );
18
-
19
- // For Post Management
20
- add_filter( 'manage_posts_columns', array( $this, 'add_column' ) );
21
- add_action( 'manage_posts_custom_column', array( $this, 'add_value' ), 10, 2 );
22
-
23
- // For Page Management
24
- add_filter( 'manage_pages_columns', array( $this, 'add_column' ) );
25
- add_action( 'manage_pages_custom_column', array( $this, 'add_value' ), 10, 2 );
26
-
27
- // For Media Management
28
- add_filter( 'manage_media_columns', array( $this, 'add_column' ) );
29
- add_action( 'manage_media_custom_column', array( $this, 'add_value' ), 10, 2 );
30
-
31
- // For Link Management
32
- add_filter( 'manage_link-manager_columns', array( $this, 'add_column' ) );
33
- add_action( 'manage_link_custom_column', array( $this, 'add_value' ), 10, 2 );
34
-
35
- // For Category Management
36
- add_action( 'manage_edit-link-categories_columns', array( $this, 'add_column' ) );
37
- add_filter( 'manage_link_categories_custom_column', array( $this, 'add_return_value' ), 10, 3 );
38
-
39
- // For User Management
40
- add_action( 'manage_users_columns', array( $this, 'add_column' ) );
41
- add_filter( 'manage_users_custom_column', array( $this, 'add_return_value' ), 10, 3 );
42
-
43
- // For Comment Management
44
- add_action( 'manage_edit-comments_columns', array( $this, 'add_column' ) );
45
- add_action( 'manage_comments_custom_column', array( $this, 'add_value' ), 10, 2 );
46
- }
47
-
48
- /**
49
- * Hooks to the 'admin_init'
50
- *
51
- * @return void
52
- */
53
- public function custom_objects() {
54
-
55
- // For Custom Taxonomies
56
- $taxonomies = get_taxonomies( array( 'public' => true ), 'names' );
57
- foreach ( $taxonomies as $custom_taxonomy ) {
58
- if ( isset( $custom_taxonomy ) ) {
59
- add_action( 'manage_edit-' . $custom_taxonomy . '_columns', array( $this, 'add_column' ) );
60
- add_filter( 'manage_' . $custom_taxonomy . '_custom_column', array( $this, 'add_return_value' ), 10, 3 );
61
- }
62
- }
63
-
64
- // For Custom Post Types
65
- $post_types = get_post_types( array( 'public' => true ), 'names' );
66
- foreach ( $post_types as $post_type ) {
67
- if ( isset( $post_type ) ) {
68
- add_action( 'manage_edit-' . $post_type . '_columns', array( $this, 'add_column' ) );
69
- add_filter( 'manage_' . $post_type . '_custom_column', array( $this, 'add_return_value' ), 10, 3 );
70
- }
71
- }
72
- }
73
-
74
- /**
75
- * Hooks to 'admin_head'
76
- *
77
- * @return void
78
- */
79
- public function add_css() {
80
- ?>
81
- <style type="text/css">
82
- #wpsite-show-ids {
83
- width: 50px;
84
- }
85
- </style>
86
- <?php
87
- }
88
-
89
- /**
90
- * Adds column to edit screen
91
- *
92
- * @param mixed $cols
93
- * @return void
94
- */
95
- public function add_column( $cols ) {
96
-
97
- $cols['wpsite-show-ids'] = 'ID';
98
-
99
- return $cols;
100
- }
101
-
102
- /**
103
- * Adds id value
104
- *
105
- * @param mixed $column_name
106
- * @param mixed $id
107
- * @return void
108
- */
109
- public function add_value( $column_name, $id ) {
110
- if ( 'wpsite-show-ids' === $column_name ) {
111
- echo $id;
112
- }
113
- }
114
-
115
- /**
116
- * Adds id value
117
- *
118
- * @param mixed $value
119
- * @param mixed $column_name
120
- * @param mixed $id
121
- * @return void
122
- */
123
- public function add_return_value( $value, $column_name, $id ) {
124
-
125
- if ( 'wpsite-show-ids' === $column_name ) {
126
- $value = $id;
127
- }
128
-
129
- return $value;
130
- }
131
- }
132
-
133
- /**
134
- * Start
135
- * @var WPSite_Show_IDs
136
- */
137
- new WPSite_Show_IDs;
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.3
7
+ * Author: 99 Robots
8
+ * Author URI: https://99robots.com
9
+ * License: GPL2
10
+ */
11
+
12
+ class WPSite_Show_IDs {
13
+
14
+ public function __construct() {
15
+
16
+ add_action( 'admin_init', array( $this, 'custom_objects' ) );
17
+ add_action( 'admin_head', array( $this, 'add_css' ) );
18
+
19
+ // For Post Management
20
+ add_filter( 'manage_posts_columns', array( $this, 'add_column' ) );
21
+ add_action( 'manage_posts_custom_column', array( $this, 'add_value' ), 10, 2 );
22
+
23
+ // For Page Management
24
+ add_filter( 'manage_pages_columns', array( $this, 'add_column' ) );
25
+ add_action( 'manage_pages_custom_column', array( $this, 'add_value' ), 10, 2 );
26
+
27
+ // For Media Management
28
+ add_filter( 'manage_media_columns', array( $this, 'add_column' ) );
29
+ add_action( 'manage_media_custom_column', array( $this, 'add_value' ), 10, 2 );
30
+
31
+ // For Link Management
32
+ add_filter( 'manage_link-manager_columns', array( $this, 'add_column' ) );
33
+ add_action( 'manage_link_custom_column', array( $this, 'add_value' ), 10, 2 );
34
+
35
+ // For Category Management
36
+ add_action( 'manage_edit-link-categories_columns', array( $this, 'add_column' ) );
37
+ add_filter( 'manage_link_categories_custom_column', array( $this, 'add_return_value' ), 10, 3 );
38
+
39
+ // For User Management
40
+ add_action( 'manage_users_columns', array( $this, 'add_column' ) );
41
+ add_filter( 'manage_users_custom_column', array( $this, 'add_return_value' ), 10, 3 );
42
+
43
+ // For Comment Management
44
+ add_action( 'manage_edit-comments_columns', array( $this, 'add_column' ) );
45
+ add_action( 'manage_comments_custom_column', array( $this, 'add_value' ), 10, 2 );
46
+ }
47
+
48
+ /**
49
+ * Hooks to the 'admin_init'
50
+ *
51
+ * @return void
52
+ */
53
+ public function custom_objects() {
54
+
55
+ // For Custom Taxonomies
56
+ $taxonomies = get_taxonomies( array( 'public' => true ), 'names' );
57
+ foreach ( $taxonomies as $custom_taxonomy ) {
58
+ if ( isset( $custom_taxonomy ) ) {
59
+ add_action( 'manage_edit-' . $custom_taxonomy . '_columns', array( $this, 'add_column' ) );
60
+ add_filter( 'manage_' . $custom_taxonomy . '_custom_column', array( $this, 'add_return_value' ), 10, 3 );
61
+ }
62
+ }
63
+
64
+ // For Custom Post Types
65
+ $post_types = get_post_types( array( 'public' => true ), 'names' );
66
+ foreach ( $post_types as $post_type ) {
67
+ if ( isset( $post_type ) ) {
68
+ add_action( 'manage_edit-' . $post_type . '_columns', array( $this, 'add_column' ) );
69
+ add_filter( 'manage_' . $post_type . '_custom_column', array( $this, 'add_return_value' ), 10, 3 );
70
+ }
71
+ }
72
+ }
73
+
74
+ /**
75
+ * Hooks to 'admin_head'
76
+ *
77
+ * @return void
78
+ */
79
+ public function add_css() {
80
+ ?>
81
+ <style type="text/css">
82
+ #wpsite-show-ids {
83
+ width: 50px;
84
+ }
85
+ </style>
86
+ <?php
87
+ }
88
+
89
+ /**
90
+ * Adds column to edit screen
91
+ *
92
+ * @param mixed $cols
93
+ * @return void
94
+ */
95
+ public function add_column( $cols ) {
96
+
97
+ $cols['wpsite-show-ids'] = 'ID';
98
+
99
+ return $cols;
100
+ }
101
+
102
+ /**
103
+ * Adds id value
104
+ *
105
+ * @param mixed $column_name
106
+ * @param mixed $id
107
+ * @return void
108
+ */
109
+ public function add_value( $column_name, $id ) {
110
+ if ( 'wpsite-show-ids' === $column_name ) {
111
+ echo $id;
112
+ }
113
+ }
114
+
115
+ /**
116
+ * Adds id value
117
+ *
118
+ * @param mixed $value
119
+ * @param mixed $column_name
120
+ * @param mixed $id
121
+ * @return void
122
+ */
123
+ public function add_return_value( $value, $column_name, $id ) {
124
+
125
+ if ( 'wpsite-show-ids' === $column_name ) {
126
+ $value = $id;
127
+ }
128
+
129
+ return $value;
130
+ }
131
+ }
132
+
133
+ /**
134
+ * Start
135
+ * @var WPSite_Show_IDs
136
+ */
137
+ new WPSite_Show_IDs;