Skip to content

Commit 67b0b59

Browse files
Merge pull request #5 from colorful-tones/release/0.1.3-prep
Release/0.1.3 prep
2 parents 9c2ac5b + f772648 commit 67b0b59

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ __Required__ You must have [ACF PRO](https://https://www.advancedcustomfields.co
3030

3131
## Changelog
3232

33+
### 0.1.3 – 2023-09-25
34+
35+
- Restrict access to block locking based on email domain with `demo_acf_show_admin()` check.
36+
- Improve usage of `get_block_wrapper_attributes()` for Phone block based on [Liam's Tweet thread](https://x.com/lgladdy/status/170011422420935dd).
37+
- Add `background` and `text` color supports to Phone block.
38+
3339
### 0.1.2 – 2023-08-29
3440

3541
Added example of restricting access to ACF admin screens based on role && email domain, example: `yourAgency.com`. So builders can limit admin screens for their clients. See: `includes/acf-restrict-access.php`

demo-acf-plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: A demo WordPress plugin for custom ACF PRO Blocks, Post Types, Options Pages, Taxonomies and more.
55
* Requires at least: 6.3
66
* Requires PHP: 7.4
7-
* Version: 0.1.2
7+
* Version: 0.1.3
88
* Author: ACF
99
* License: GPL-2.0-or-later
1010
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -14,7 +14,7 @@
1414
*/
1515

1616
// Define our handy constants.
17-
define( 'DEMO_ACF_VERSION', '0.1.2' );
17+
define( 'DEMO_ACF_VERSION', '0.1.3' );
1818
define( 'DEMO_ACF_PLUGIN_DIR', __DIR__ );
1919
define( 'DEMO_ACF_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
2020
define( 'DEMO_ACF_PLUGIN_BLOCKS', DEMO_ACF_PLUGIN_DIR . '/blocks/' );

includes/acf-restrict-access.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @since 0.1.2
2626
*/
27-
function demo_acf_show_admin() {
27+
function demo_acf_show_acf_admin() {
2828
// If our user can manage site options.
2929
if ( current_user_can( 'manage_options' ) ) {
3030
$user = wp_get_current_user();

includes/acf-settings-page.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ function () {
2929
// Add 'Contact Information' field group with Phone field.
3030
acf_add_local_field_group(
3131
array(
32-
'key' => 'demo_acf_contact_information',
32+
'key' => 'group_6511a57f5680c',
3333
'title' => 'Contact Information',
3434
'fields' => array(
3535
array(
36-
'key' => 'demo_acf_phone_number',
36+
'key' => 'field_6511a57fcbe7e',
3737
'label' => 'Phone Number',
3838
'name' => 'demo_acf_phone_number',
3939
'type' => 'text',
@@ -54,19 +54,19 @@ function () {
5454

5555
acf_add_local_field_group(
5656
array(
57-
'key' => 'demo_acf_notification_bar',
57+
'key' => 'group_6511a5e8c1c15',
5858
'title' => 'Notification Bar',
5959
'fields' => array(
6060
array(
61-
'key' => 'demo_acf_notification_bar_group',
61+
'key' => 'field_6511a5e897814',
6262
'label' => 'Notification Bar',
6363
'name' => 'demo_acf_notification_bar_group',
6464
'aria-label' => '',
6565
'type' => 'group',
6666
'layout' => 'row',
6767
'sub_fields' => array(
6868
array(
69-
'key' => 'demo_acf_notification_onoff',
69+
'key' => 'field_6511a5f597815',
7070
'label' => 'Notification On/Off',
7171
'name' => 'demo_acf_notification_onoff',
7272
'type' => 'true_false',
@@ -77,7 +77,7 @@ function () {
7777
'ui' => 1,
7878
),
7979
array(
80-
'key' => 'demo_acf_notification_message',
80+
'key' => 'field_6511a5f597816',
8181
'label' => 'Notification Message',
8282
'name' => 'demo_acf_notification_message',
8383
'type' => 'textarea',

0 commit comments

Comments
 (0)