edit_custom_thumbnail_sizes

过滤钩子


apply_filters( 'edit_custom_thumbnail_sizes', $edit_custom_sizes )
参数
  • (bool|string[])
    $edit_custom_sizes
    True if custom sizes can be edited or array of custom size names.
    Required:
定义位置
  • wp-admin/includes/image-edit.php
    , line 54
引入
6.0.0
弃用

Filters whether custom sizes are available options for image editing.

$edit_custom_sizes = apply_filters( 'edit_custom_thumbnail_sizes', $edit_custom_sizes );