WordPress开发者和主题制作者的搜索引擎



display_media_states ›

Since4.8.0
已弃用n/a
apply_filters( 'display_media_states', $media_states, $post )
参数: (2)
  • (string[]) $media_states An array of media states. Default 'Header Image', 'Background Image', 'Site Icon', 'Logo'.
    Required: Yes
  • (WP_Post) $post The current attachment object.
    Required: Yes
定义在:
文档:

Filters the default media display states for items in the Media list table.





源码

$media_states = apply_filters( 'display_media_states', $media_states, $post );