wp_default_styles


wp_default_styles ( $styles )

Parameters:
  • (WP_Styles) styles
Defined at:

Description

Assigns 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_default_script_modules, wp_dequeue_style, wp_default_packages, wp_default_editor

Top Google Results

User discussions

wpseek mobile