twentytwenty_disallowed_post_types_for_meta_output

过滤钩子


apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' )
参数
  • (array)
    $
    Array of post types.
    Required: 是
定义位置
  • wp-content/themes/twentytwenty/inc/template-tags.php , line 264
引入
Twenty Twenty 1.0
弃用
–

Filters post types array.

This filter can be used to hide post meta information of post, page or custom post type
registered by child themes or plugins.

$disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) );