Version Description
2021-05-14 * Made compatible with WordPress 5.7.2
Download this release
Release Info
Developer | 99robots |
Plugin | Show IDs by 99 Robots |
Version | 1.1.7 |
Comparing to | |
See all releases |
Code changes from version 1.1.6 to 1.1.7
- readme.txt +106 -103
- wpsite-show-ids.php +144 -137
readme.txt
CHANGED
@@ -1,103 +1,106 @@
|
|
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 |
-
Stable tag: 1.1.
|
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.
|
67 |
-
* Made compatible with WordPress 5.
|
68 |
-
|
69 |
-
= 1.1.
|
70 |
-
* Made compatible with WordPress 5.
|
71 |
-
|
72 |
-
= 1.1.
|
73 |
-
* Made compatible with WordPress 5.
|
74 |
-
|
75 |
-
= 1.1.
|
76 |
-
* Made compatible with WordPress 5.
|
77 |
-
|
78 |
-
= 1.1.
|
79 |
-
* Made compatible with WordPress
|
80 |
-
|
81 |
-
= 1.1.
|
82 |
-
*
|
83 |
-
|
84 |
-
= 1.1.
|
85 |
-
* UPDATED:
|
86 |
-
|
87 |
-
= 1.0
|
88 |
-
*
|
89 |
-
|
90 |
-
= 1.0.
|
91 |
-
*
|
92 |
-
|
93 |
-
= 1.0.
|
94 |
-
*
|
95 |
-
|
96 |
-
= 1.0.
|
97 |
-
*
|
98 |
-
|
99 |
-
= 1.0.
|
100 |
-
*
|
101 |
-
|
102 |
-
= 1.0 =
|
103 |
-
*
|
|
|
|
|
|
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
|
wpsite-show-ids.php
CHANGED
@@ -1,137 +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 |
-
* Author: 99 Robots
|
8 |
-
* Author URI: https://99robots.com
|
9 |
-
* License: GPL2
|
10 |
-
*/
|
11 |
-
|
12 |
-
class WPSite_Show_IDs
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
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.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;
|