Summery Summery

Assign default styles to $styles object.

Syntax Syntax

wp_default_styles( WP_Styles $styles )

Description Description

Nothing is returned, because the $styles parameter is passed by reference. Meaning that whatever object is passed will be updated without having to reassign the variable that was passed back to the same value. This saves memory.

Adding default styles is not the only task, it also assigns the base_url property, the default version, and text direction for the object.

Parameters Parameters


(WP_Styles) (Required)

Source Source

File: wp-includes/script-loader.php



Changelog Changelog

Version Description
2.6.0 Introduced.


Leave a Reply

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