is_admin

Advertisement

Summery Summery

Determines whether the current request is for an administrative interface page.

Syntax Syntax

is_admin()

Description Description

Does not check if the user is an administrator; use current_user_can() for checking roles and capabilities.

For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.

Return Return

(bool) True if inside WordPress administration interface, false otherwise.

Source Source

File: wp-includes/load.php

/**
 * Runs just before PHP shuts down execution.
 *
 * @since 1.2.0
 * @access private
 */
function shutdown_action_hook() {
	/**
	 * Fires just before PHP shuts down execution.

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.1 Introduced.

Advertisement

Leave a Reply