Catch IDs - Version 1.0

Version Description

Download this release

Release Info

Developer catchthemes
Plugin Icon 128x128 Catch IDs
Version 1.0
Comparing to
See all releases

Version 1.0

Files changed (5) hide show
  1. catch-ids.php +125 -0
  2. readme.txt +39 -0
  3. screenshot-1.png +0 -0
  4. screenshot-2.png +0 -0
  5. screenshot-3.png +0 -0
catch-ids.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Catch IDs
4
+ Plugin URI: http://catchthemes.com/wp-plugins/catch-ids/
5
+ Description: Catch IDs is a simple and light weight plugin to show the Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and User ID in the Admin Section Table. This plugin was initially develop to support our themes features slider. Then we thought that this will be helpful to all the WordPress Admin Users.
6
+ Version: 1.0
7
+ Author: Catch Themes Team
8
+ Author URI: http://catchthemes.com
9
+ */
10
+
11
+ /*
12
+ Copyright (C) 2012 Catch Themes, (info@catchinternet.com)
13
+
14
+ This program is free software; you can redistribute it and/or modify
15
+ it under the terms of the GNU General Public License as published by
16
+ the Free Software Foundation; either version 3 of the License, or
17
+ (at your option) any later version.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
26
+ */
27
+
28
+
29
+ /**
30
+ * @package Catch-IDs
31
+ * @version 1.0
32
+ */
33
+
34
+
35
+ if ( ! function_exists( 'catchids_column' ) ):
36
+ /**
37
+ * Prepend the new column to the columns array
38
+ */
39
+ function catchids_column($cols) {
40
+ $cols['catchids'] = 'ID';
41
+ return $cols;
42
+ }
43
+ endif; // catchids_column
44
+
45
+
46
+ if ( ! function_exists( 'catchids_value' ) ) :
47
+ /**
48
+ * Echo the ID for the new column
49
+ */
50
+ function catchids_value($column_name, $id) {
51
+ if ($column_name == 'catchids')
52
+ echo $id;
53
+ }
54
+ endif; // catchids_value
55
+
56
+
57
+ if ( ! function_exists( 'catchids_return_value' ) ) :
58
+ function catchids_return_value($value, $column_name, $id) {
59
+ if ($column_name == 'catchids')
60
+ $value = $id;
61
+ return $value;
62
+ }
63
+ endif; // catchids_return_value
64
+
65
+
66
+ if ( ! function_exists( 'catchids_css' ) ) :
67
+ /**
68
+ * Output CSS for width of new column
69
+ */
70
+ function catchids_css() {
71
+ ?>
72
+ <style type="text/css">
73
+ #catchids {
74
+ width: 50px;
75
+ }
76
+ </style>
77
+ <?php
78
+ }
79
+ endif; // catchids_css
80
+
81
+
82
+ if ( ! function_exists( 'catchids_add' ) ) :
83
+ /**
84
+ * Actions/Filters for various tables and the css output
85
+ */
86
+ function catchids_add() {
87
+ add_action('admin_head', 'catchids_css');
88
+
89
+ // For Post Management
90
+ add_filter('manage_posts_columns', 'catchids_column');
91
+ add_action('manage_posts_custom_column', 'catchids_value', 10, 2);
92
+
93
+ // For Page Management
94
+ add_filter('manage_pages_columns', 'catchids_column');
95
+ add_action('manage_pages_custom_column', 'catchids_value', 10, 2);
96
+
97
+ // For Media Management
98
+ add_filter('manage_media_columns', 'catchids_column');
99
+ add_action('manage_media_custom_column', 'catchids_value', 10, 2);
100
+
101
+ // For Link Management
102
+ add_filter('manage_link-manager_columns', 'catchids_column');
103
+ add_action('manage_link_custom_column', 'catchids_value', 10, 2);
104
+
105
+ // For Category Management
106
+ add_action('manage_edit-link-categories_columns', 'catchids_column');
107
+ add_filter('manage_link_categories_custom_column', 'catchids_return_value', 10, 3);
108
+
109
+ // For Tags Management
110
+ foreach ( get_taxonomies() as $taxonomy ) {
111
+ add_action("manage_edit-${taxonomy}_columns", 'catchids_column');
112
+ add_filter("manage_${taxonomy}_custom_column", 'catchids_return_value', 10, 3);
113
+ }
114
+
115
+ // For User Management
116
+ add_action('manage_users_columns', 'catchids_column');
117
+ add_filter('manage_users_custom_column', 'catchids_return_value', 10, 3);
118
+
119
+ // For Comment Management
120
+ add_action('manage_edit-comments_columns', 'catchids_column');
121
+ add_action('manage_comments_custom_column', 'catchids_value', 10, 2);
122
+ }
123
+ endif; // catchids_add
124
+
125
+ add_action('admin_init', 'catchids_add');
readme.txt ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Catch IDs ===
2
+
3
+ Contributors: catchthemes
4
+ Donate link: http://catchthemes.com/wp-plugins/catch-ids/
5
+ Tags: catch-ids, simple, admin, wp-admin, show, ids, post, page, category, media, links, tag, user
6
+ Requires at least: 3.0
7
+ Tested up to: 3.4
8
+ Stable tag: 1.0
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+ What this plugin does is to shows the IDs on admin section.
13
+
14
+ == Description ==
15
+
16
+ Catch IDs is a simple and light weight plugin to show the Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and User ID in the Admin Section Table. This plugin was initially develop to support our themes features slider. Then we thought that this will be helpful to all the WordPress Admin Users.
17
+
18
+
19
+ == Installation ==
20
+ 1. Download the plugin and unzip it.
21
+ 1. Upload the `catch-ids` folder to the `/wp-content/plugins/` directory or install directly through the plugin installer.
22
+ 1. Activate the plugin through the 'Plugins' menu in WordPress or by using the link provided by the plugin installer
23
+ 1. Installation finished.
24
+
25
+ == Screenshots ==
26
+
27
+ 1. Edit Posts Page
28
+ 1. Edit Media Library
29
+ 1. Edit Categories
30
+
31
+ == Usage ==
32
+
33
+ 1. Just install and activate.
34
+
35
+
36
+ == Changelog ==
37
+
38
+ = 1.0
39
+ * Initial Public Release
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file