forked from UmeshSingla/user-tags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
executable file
·146 lines (103 loc) · 4.06 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
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
138
139
140
141
142
143
144
145
146
=== User Tags ===
Contributors: UmeshSingla
Donate link: https://www.paypal.com/
Tags: Tags, taxonomies, user taxonomy, user tags
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 3.5
Tested up to: 4.9
Stable tag: 1.2.7
Adds an admin option to allow creating User Taxonomies and create tags for different taxonomies.
== Description ==
Adds a **Taxonomies** option under **User** to create custom user taxonomy.
All taxonomies are listed in Profile page for all users which allows users to add tags for the taxonomy.
Each Tag is associated with a template, listing all users who added that tag in their profile.
Supports Multisite
Note:
Only admin can manage Taxonomies.
Users can add new tags.
== Installation ==
1. Upload the `wp-user-taxonomies` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Taxonomies under Users option to create taxonomies for User
== Changelog ==
= 1.2.7 =
* Fixed - Fatal error, Initialise as array instead of string
= 1.2.6 =
* New - Filter: `ut_template_users` in Taxonomy template to filter the list of users before displaying
* Fixed - handle count callback for register taxonomy (Fixes tag cloud size issue )
= 1.2.5 =
* Fixed - Remove PHP closures
= 1.2.4 =
* Update - Taxonomy name is independent of prefix
* Fixed - Bubbling up of multiple list on repeated click over most used tags link
* Fixed - Tag being saved for admin too on editing other user profile
( Thank you @Tempera for reporting all the issues )
= 1.2.3 =
* Fixed - 'ut_template_content' filter args
* Fixed - Translation function (props @stefan)
* Updated - Replaced PHP closure with normal functions
= 1.2.2 =
* Fixed - Tag cloud not appearing for all taxonomies in shortcode
* Update - Shortcode - Do not echo form if user is not loggedin
= 1.2.1 =
* Fixed - Tag cloud for [user_tags] shortcode
= 1.2 =
* Fixed - [user_tags] shortcode
= 1.1 =
* Fix: All tag not being deleted
= 1.0 =
* New: Tag Cloud to choose from most popular
* New: Filter 'ut_tag_cloud_heading' to change tag cloud heading
= 0.1.3 =
* Fixes Page not found error for tag templates
* Fixes tags update for other users by administrator, causing overwrite to current logged in users taxonomy
* Improved Template Styling
= 0.1.2 =
Fixes Taxonomy length error
= 0.1.1 =
Code formatting
= 0.1 =
First Release
== Upgrade Notice ==
Requires Wordpress 3.0 atleast
== Frequently Asked Questions ==
= What if tags template are not working for me? =
You just need to save permalinks once, and it will work absolutely fine for you afterwards.
= If you'd like to sort the Users list in template, Use the filter `ut_template_users`, here is a e.g. =
`add_filter( 'ut_template_users', 'ut_sort_users' );
/**
* Filters out the list of users in a template, and orders it by user_login
*
* @param $users
*
* @return mixed
*/
function ut_sort_users( $users ) {
if ( empty( $users ) || ! is_array( $users ) ) {
return $users;
}
$user_query = new WP_User_Query( array( 'fields' => 'ID', 'include' => $users, 'orderby' => 'user_login' ) );
if ( ! is_wp_error( $user_query ) && ! empty( $user_list = $user_query->get_results() ) ) {
return $user_list;
}
return $users;
}
`
= Visit https://github.com/UmeshSingla/user-tags for support =
== Screenshots ==
1. Taxonomy Option under Users
2. Manage Tags for Custom User Taxonomy Food Like
3. Tags option in User profile Page
4. Template page for tag, listing all the associated users
== Other Notes ==
= Filters Available =
* 'ut_template_heading' => Can be used to modify Template Page Heading
* 'ut_tepmplate_content' => Can be used to modify users list style,
args => 1 , $users => List of Users
* 'ut_template_content_empty' => Display custom message, if there are no users for term
* 'ut_tag_cloud_heading', Allow to modify Tag cloud heading
= Shortcode =
* [user_tags], will generate the User Tags UI in frontend and save the tags
== Credits ==
[Justin Tadlock](http://justintadlock.com/archives/2011/10/20/custom-user-taxonomies-in-wordpress)