Skip to content

Commit

Permalink
Hiode admin bar
Browse files Browse the repository at this point in the history
Signed-off-by: Kipruto <[email protected]>
  • Loading branch information
kelvinkipruto committed Apr 5, 2024
1 parent 5a96443 commit 8ddde2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wp-content/themes/academyAfrica/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';


Expand Down Expand Up @@ -411,6 +411,7 @@ function restrict_admin_access()
wp_redirect(home_url());
exit;
}

}

add_action('admin_init', 'restrict_admin_access');
Expand All @@ -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.";
Expand Down

0 comments on commit 8ddde2a

Please sign in to comment.