-
Notifications
You must be signed in to change notification settings - Fork 4
/
readme.txt
104 lines (73 loc) · 3.67 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
=== WP Term Visibility ===
Contributors: johnjamesjacoby, stuttter
Tags: taxonomy, term, meta, metadata, visibility, privacy
Requires PHP: 5.6.20
Requires at least: 4.4
Tested up to: 5.2
Stable tag: 2.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://ko-fi.com/jjj
== Description ==
Visibility for categories, tags, and other taxonomy terms
WP Term Visibility allows users to assign a visibility to any category, tag, or taxonomy term using a dropdown, providing customized functionality for taxonomy terms.
= Also checkout =
* [WP Chosen](https://wordpress.org/plugins/wp-chosen/ "Make long, unwieldy select boxes much more user-friendly.")
* [WP Pretty Filters](https://wordpress.org/plugins/wp-pretty-filters/ "Makes post filters better match what's already in Media & Attachments.")
* [WP Event Calendar](https://wordpress.org/plugins/wp-event-calendar/ "The best way to manage events in WordPress.")
* [WP Media Categories](https://wordpress.org/plugins/wp-media-categories/ "Add categories to media & attachments.")
* [WP Term Order](https://wordpress.org/plugins/wp-term-order/ "Sort taxonomy terms, your way.")
* [WP Term Authors](https://wordpress.org/plugins/wp-term-authors/ "Authors for categories, tags, and other taxonomy terms.")
* [WP Term Locks](https://wordpress.org/plugins/wp-term-locks/ "Pretty locks for categories, tags, and other taxonomy terms.")
* [WP Term Icons](https://wordpress.org/plugins/wp-term-icons/ "Pretty icons for categories, tags, and other taxonomy terms.")
* [WP Term Visibility](https://wordpress.org/plugins/wp-term-visibility/ "Visibilities for categories, tags, and other taxonomy terms.")
* [WP User Activity](https://wordpress.org/plugins/wp-user-activity/ "The best way to log activity in WordPress.")
* [WP User Avatars](https://wordpress.org/plugins/wp-user-avatars/ "Allow users to upload avatars or choose them from your media library.")
* [WP User Groups](https://wordpress.org/plugins/wp-user-groups/ "Group users together with taxonomies & terms.")
* [WP User Profiles](https://wordpress.org/plugins/wp-user-profiles/ "A sophisticated way to edit users in WordPress.")
== Screenshots ==
1. Category Visibility
== Installation ==
* Download and install using the built in WordPress plugin installer.
* Activate in the "Plugins" area of your admin by clicking the "Activate" link.
* No further setup or configuration is necessary.
== Frequently Asked Questions ==
= Does this plugin depend on any others? =
No. Not since WordPress 4.4.
= Does this create new database tables? =
No. There are no new database tables with this plugin.
= Does this modify existing database tables? =
No. All of WordPress's core database tables remain untouched.
= How do I query for terms via their visibility? =
With WordPress's `get_terms()` function, the same as usual, but with an additional `meta_query` argument according the `WP_Meta_Query` specification:
http://codex.wordpress.org/Class_Reference/WP_Meta_Query
`
$terms = get_terms( 'category', array(
'depth' => 1,
'number' => 100,
'parent' => 0,
'hide_empty' => false,
// Query by visibility using the "wp-term-meta" plugin!
'meta_query' => array( array(
'key' => 'visibility',
'value' => 'private'
) )
) );
`
= Where can I get support? =
The WordPress support forums: https://wordpress.org/support/plugin/wp-term-visibility/
= Where can I find documentation? =
http://github.com/stuttter/wp-term-visibility/
== Changelog ==
= 2.0.0 =
* Update base class
= 0.2.0 =
* Update base class
= 0.1.3 =
* Use base class
= 0.1.2 =
* Sanitize output
= 0.1.1 =
* Introduce UI
= 0.1.0 =
* Initial release