wp_default_styles


wp_default_styles ( $styles )

Parameters:
  • (WP_Styles) $styles
Defined at:

Description

Assign default styles to $styles object.

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.

Related Functions

wp_default_scripts, wp_dequeue_style, wp_default_editor, wp_get_sites, wp_print_styles

Top Google Results

User discussions

wpseek mobile