twenty_twenty_one_attachment_size

过滤钩子


apply_filters( 'twenty_twenty_one_attachment_size', 'full' )
参数
  • (string)
    $image_size
    Image size. Default ‘full’.
    Required:
定义位置
  • wp-content/themes/twentytwentyone/image.php , line 31
引入
Twenty Twenty-One 1.0
弃用

Filter the default image attachment size.

$image_size = apply_filters( 'twenty_twenty_one_attachment_size', 'full' );