-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.txt
110 lines (80 loc) · 3.36 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
=== Post Meta Controls ===
Contributors: melonpan
Tags: gutenberg, meta, post-meta, settings, controls
Requires at least: 5.2
Tested up to: 5.3
Stable tag: 1.4.1
Requires PHP: 7.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Utilities to register, save and modify post meta data in the Gutenberg editor.
== Description ==
[Demo](https://gutenberg-showcase.melonpan.io/post-meta-controls) - [Documentation](https://melonpan.io/wordpress-plugins/post-meta-controls) - [GitHub](https://github.com/garciaalvaro/post-meta-controls)
Register, Save, Modify and Get meta data in the Gutenberg editor.
Use this plugin to add meta data controls inside a sidebar in the editor of posts, pages or custom post types.
This is the list of controls available:
* Buttons
* Checkbox, Checkbox Multiple
* Color, Color with Alpha
* Custom text
* Date Range, Date Single
* Image, Image Multiple
* Radio
* Range, Range with Float number
* Select
* Text, Textarea
The plugin comes with different options to customize the Sidebars, Tabs, Panels and Setting controls.
== Usage ==
Once the plugin is installed, you will need to include the plugin filter inside your plugin or theme to create a sidebar with it's settings.
The new sidebar/s can be accessed in any post type where it was registered.
Modify the setting values with the controls inside the sidebar.
Use the plugin helpers (see *Helpers to get the meta values* section) to get the meta data in the front end.
== Installation ==
Installation from the WordPress admin.
1. Log in to the WordPress admin and navigate to *Plugins > Add New*.
2. Type *Post Meta Controls* in the Search field.
3. In the results list *Post Meta Controls* plugin should appear, click **Install Now** button.
4. Once it finished installing, click the *Activate* button.
5. Now you can register your sidebar and settings using the filter in your plugin or theme.
6. To view your sidebar go to any post where Gutenberg is enabled and the sidebar was registered to.
== Screenshots ==
1. Sidebar with different tabs, panels and controls
== Changelog ==
= 1.4.1 =
* Updated dependencies
= 1.4.0 =
* Updated dependencies
* Minor bug fixes
= 1.3.4 =
* Fixed bug with color default value not saving
* Fixed initial data fetch
* Minor style fixes for WP 5.6
= 1.3.3 =
* Fixed bug with case sensitive file name mismatch
= 1.3.2 =
* Fixed incompatibilities with WordPress 5.5
* Updated packages
= 1.3.1 =
* Fixed bug that didn't load correctly small images in the editor.
* Minor bug fixes.
= 1.3.0 =
* Added minimum_days option in date_range.
* Added maximum_days option in date_range.
= 1.2.0 =
* Added unavailable_dates option in date_single and date_range.
* Use a rest route to get the sidebars data instead of printing the data inline.
* Fixed WP 5.3 meta key from saving an empty value if the key doesnt exist.
* Fixed momentjs locales file not loading correctly.
* Fixed date_range defaults not showing.
* Fixed bug when saving empty value in image and image_multiple.
* Code refactor. Migrated JavaScript to TypeScript.
= 1.1.0 =
* Simplified some of the core functions.
* Styling fixes.
* Minor bug fixes.
* Updated dependencies.
= 1.0.1 =
* Checkbox Multiple fix: If there were old values saved that no longer belong to the options, we display them as selected. If they are deselected we remove them from the options.
* Updated dependencies.
= 1.0.0 =
* Initial release.