From 8ddde2a1459d3fa50d2ed63e30578434b5135dab Mon Sep 17 00:00:00 2001 From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> Date: Fri, 5 Apr 2024 11:10:16 +0300 Subject: [PATCH] Hiode admin bar Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> --- wp-content/themes/academyAfrica/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/academyAfrica/functions.php b/wp-content/themes/academyAfrica/functions.php index 7b7d9a2..f5b2794 100644 --- a/wp-content/themes/academyAfrica/functions.php +++ b/wp-content/themes/academyAfrica/functions.php @@ -29,7 +29,7 @@ function child_theme_configurator_css() // END ENQUEUE PARENT ACTION -define('ACADEMY_AFRICA_VERSION', '1.1.68'); +define('ACADEMY_AFRICA_VERSION', '1.1.69'); const MINIMUM_ELEMENTOR_VERSION = '3.16.6'; @@ -411,6 +411,7 @@ function restrict_admin_access() wp_redirect(home_url()); exit; } + } add_action('admin_init', 'restrict_admin_access'); @@ -422,6 +423,8 @@ function hide_admin_bar() } } +add_action('admin_init', 'hide_admin_bar'); + function check_password_reset_action(){ if (isset($_POST['pass_reset'])) { echo "Password reset instructions have been sent to your email address.";