is_user_logged_in

Definition:
function is_user_logged_in() {}

Checks if the current visitor is a logged in user.

Return values

returns:True if user is logged in, false if not logged in.

Source code

function is_user_logged_in() {

	$user = wp_get_current_user();



	if ( empty( $user->ID ) )

		return false;



	return true;

}

2219

is_upload_space_available

Definition:
function is_upload_space_available() {}

Determines if there is any upload space left in the current blog’s quota.

Return values

returns:True if space is available, false otherwise.

Source code

function is_upload_space_available() {

	if ( get_site_option( 'upload_space_check_disabled' ) )

		return true;



	if ( !( $space_allowed = get_upload_space_available() ) )

		return false;



	return true;

}

2217

is_uninstallable_plugin

Definition:
function is_uninstallable_plugin($plugin) {}

Whether the plugin can be uninstalled.

Parameters

  • string $plugin: Plugin path to check.

Return values

returns:Whether plugin can be uninstalled.

Source code

function is_uninstallable_plugin($plugin) {

	$file = plugin_basename($plugin);



	$uninstallable_plugins = (array) get_option('uninstall_plugins');

	if ( isset( $uninstallable_plugins[$file] ) || file_exists( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' ) )

		return true;



	return false;

}

2215

is_trackback

Definition:
function is_trackback() {}

Is the query for a trackback endpoint call?

Source code

	function is_trackback() {

		return (bool) $this->is_trackback;

	}

2213

is_time

Definition:
function is_time() {}

Is the query for a specific time?

Source code

	function is_time() {

		return (bool) $this->is_time;

	}

2211