Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
wp_default_styles() - 为$styles对象指定默认样式 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / wp_default_styles()

wp_default_styles( WP_Styles $styles )

为$styles对象指定默认样式


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 3 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "433c1bb3c2eb487ce45e22591ede161b" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "d1ac776bf630cad0094ac31ca14113c9" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

default

styles


描述

没有返回任何内容,因为$styles参数是通过引用传递的。
表示传递的任何对象都将被更新,而无需重新分配传递回相同值的变量。这节省了内存。

添加默认样式不是唯一的任务,它还为对象指定base_url特性、默认版本和文本方向。


参数

$stylesWP_Styles必填


源码

查看源码 官方文档


更新日志

版本描述
2.6.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194