wp_default_styles ( $styles )

  • (WP_Styles) styles
Defined at:


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_packages, wp_default_editor, wp_print_styles

Top Google Results

User discussions

wpseek mobile