WP_Dependencies::enqueue

Advertisement

Summery Summery

Queue an item or items.

Syntax Syntax

WP_Dependencies::enqueue( string|string[] $handles )

Description Description

Decodes handles and arguments, then queues handles and stores arguments in the class property $args. For example in extending classes, $args is appended to the item url as a query string. Note $args is NOT the $args property of items in the $registered array.

Parameters Parameters

$handles

(string|string[]) (Required) Item handle (string) or item handles (array of strings).

Source Source

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Moved from WP_Scripts.
2.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.