WP_Dependencies::set_group( string $handle, bool $recursion, mixed $group )

Set item group, unless already in a lower group.


Description Description


Parameters Parameters

$handle

(string) (Required) Name of the item. Should be unique.

$recursion

(bool) (Required) Internal flag that calling function was called recursively.

$group

(mixed) (Required) Group level.


Top ↑

Return Return

(bool) Not already in the group or a lower group


Top ↑

Source Source

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

	public function set_group( $handle, $recursion, $group ) {
		$group = (int) $group;

		if ( isset( $this->groups[ $handle ] ) && $this->groups[ $handle ] <= $group ) {
			return false;
		}

		$this->groups[ $handle ] = $group;

		return true;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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