AnsPress_Hooks::show_admin_bar()

Description #

Disable admin bar for non-administrator users.

Changelog #

VersionDescription
4.4.0Introduced.

Source #

File: includes/hooks.php

	public static function show_admin_bar() {
		if ( ! ap_opt( 'show_admin_bar' ) && ! is_super_admin() ) {
			return apply_filters( 'ap_show_admin_bar', false );
		}

		return true;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment