From 9a79c75e57a22041740f44dbd7e358502b0fd6a8 Mon Sep 17 00:00:00 2001 From: Damon Cook Date: Fri, 20 Oct 2023 11:55:05 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Misnamed=20function=20cal?= =?UTF-8?q?ls=20cause=20Fatal=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/acf-restrict-access.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/acf-restrict-access.php b/includes/acf-restrict-access.php index 1b11ff6..bc7003e 100644 --- a/includes/acf-restrict-access.php +++ b/includes/acf-restrict-access.php @@ -10,6 +10,7 @@ add_filter( 'acf/settings/show_admin', 'demo_acf_show_acf_admin' ); /** * Filters the settings to pass to the block editor for all editor type. + * * @link https://developer.wordpress.org/reference/hooks/block_editor_settings_all/ */ add_filter( 'block_editor_settings_all', 'demo_acf_restrict_locking_ui', 10, 2 ); @@ -33,6 +34,7 @@ function demo_acf_show_acf_admin() { $allowed_email_domains = array( 'advancedcustomfields.com', 'wpengine.com', + 'wpengine.local', ); // Make sure we have a WP_User object and email address. @@ -57,8 +59,8 @@ function demo_acf_show_acf_admin() { * * @since 0.1.3 */ -function example_theme_restrict_locking_ui( $settings ) { - $settings['canLockBlocks'] = demo_acf_show_admin(); +function demo_acf_restrict_locking_ui( $settings ) { + $settings['canLockBlocks'] = demo_acf_show_acf_admin(); return $settings; }