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



wp_ajax_cropped_attachment_id › WordPress过滤钩子

Since4.3.0
已弃用n/a
apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context )
参数: (2)
  • (int) $attachment_id The attachment ID of the cropped image.
    Required: Yes
  • (string) $context The Customizer control requesting the cropped image.
    Required: Yes
定义在:
文档:

Filters the attachment ID for a cropped image.





源码

$attachment_id = apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context );