Used By
Used By | Description |
---|---|
wp-includes/class.wp-dependencies.php: WP_Dependencies::all_deps() | Determines dependencies. |
wp-includes/class.wp-scripts.php: WP_Scripts::set_group() | Sets handle group. |
Set item group, unless already in a lower group.
(string) (Required) Name of the item. Should be unique.
(bool) (Required) Internal flag that calling function was called recursively.
(int|false) (Required) Group level: level (int), no groups (false).
(bool) Not already in the group or a lower group.
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; }
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_dependencies/set_group