WP_Styles::all_deps() WordPress Method

The WP_Styles::all_deps() function is used to retrieve an array of all dependencies for a given stylesheet. This includes both the registered dependencies as well as any additional dependencies that may have been added by other stylesheets.

WP_Styles::all_deps( string|string[] $handles, bool $recursion = false, int|false $group = false ) #

Determines style dependencies.


Description

Top ↑

See also


Top ↑

Parameters

$handles

(string|string[])(Required)Item handle (string) or item handles (array of strings).

$recursion

(bool)(Optional) Internal flag that function is calling itself.

Default value: false

$group

(int|false)(Optional) Group level: level (int), no groups (false).

Default value: false


Top ↑

Return

(bool) True on success, false on failure.


Top ↑

Source

File: wp-includes/class.wp-styles.php

	public function all_deps( $handles, $recursion = false, $group = false ) {
		$r = parent::all_deps( $handles, $recursion, $group );
		if ( ! $recursion ) {
			/**
			 * Filters the array of enqueued styles before processing for output.
			 *
			 * @since 2.6.0
			 *
			 * @param string[] $to_do The list of enqueued style handles about to be processed.
			 */
			$this->to_do = apply_filters( 'print_styles_array', $this->to_do );
		}
		return $r;
	}


Top ↑

Changelog

Changelog
VersionDescription
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.