WP_Styles::all_deps()publicWP 2.6.0

Determines style dependencies.

Метод класса: WP_Styles{}

Хуки из метода


true|false. True on success, false on failure.


global $wp_styles;
$wp_styles->all_deps( $handles, $recursion, $group );
$handles(строка|string[]) (обязательный)
Item handle (string) or item handles (array of strings).
Internal flag that function is calling itself.
По умолчанию: false
Group level: level (int), no groups (false).
По умолчанию: false


Список изменений

С версии 2.6.0 Введена.

Код WP_Styles::all_deps() WP 6.5.2

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;