Uses
Uses | Description |
---|---|
wp-includes/class.wp-dependencies.php: WP_Dependencies::set_group() | Set item group, unless already in a lower group. |
Sets handle group.
(string) (Required) Name of the item. Should be unique.
(bool) (Required) Internal flag that calling function was called recursively.
(int|false) (Optional) Group level: level (int), no groups (false).
Default value: false
(bool) Not already in the group or a lower group.
File: wp-includes/class.wp-scripts.php
public function set_group( $handle, $recursion, $group = false ) { if ( isset( $this->registered[ $handle ]->args ) && 1 === $this->registered[ $handle ]->args ) { $grp = 1; } else { $grp = (int) $this->get_data( $handle, 'group' ); } if ( false !== $group && $grp > $group ) { $grp = $group; } return parent::set_group( $handle, $recursion, $grp ); }
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_scripts/set_group