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

Determines style dependencies.

Description

See also

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: false

$group int | false optional
Group level: level (int), no groups (false).

Default: false

Return

bool True on success, false on failure.

Source

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

Hoocs

apply_filters ( ‘print_styles_array’, string[] $to_do )

Filters the array of enqueued styles before processsing for output.

Changuelog

Versionen Description
2.6.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.