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 "cf56aca0d759bae8c37cbb9d06b846ae" in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line
223
描述
默认情况下,如果$single为true,则返回空字符串;如果为false,则返回一个空数组。
参数
- $meta_type
-
(string)(必填) 要检索meta数据的对象类型。接受'post'、'comment'、'term'、'user'或具有关联meta表的任何其他对象类型。
- $object_id
-
(int)(必填) 要检索meta数据的的对象ID。
- $meta_key
-
(string)(必填) meta数据的键名。
- $single
-
(bool)(可选) 如果为true,则仅返回指定$meta_key的第一个值。如果未指定$meta_key,则此参数无效。
默认值: false
返回
(mixed) 如果$single为false,则为默认值数组。如果$single为true,则为meta字段的默认值。
Warning: Undefined variable $o in
/www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line
194