0
我在Wordpress中获取此自定义帖子类型对象。这实际上是print_r($ this)返回的内容。
如何获取'key'的内容,例如?
Post_Types Object (
[post_types_definition:Post_Types:private] => Array (
[0] => Array (
[key] => solutions
[name] => Solutions
[taxonomies] => Array ()
[categories] =>
[show_in_nav_menus] =>
[settings] => Array (
[0] => Array (
[title] => Solutions settings field
[description] => Solutions settings field
[type] => text
[properties] => Array (
[text-id] => solutions_settings_field_2
)
)
)
)
)
)
任何帮助,高度赞赏它!
$ this的上下文是什么? –
print_r($ this)输出上面列出的 – george
这不会告诉我任何东西。我们需要更多的代码继续。看起来$这实际上是指你试图访问的对象?? –