wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_ajax_cropped_attachment_id › WordPress Filter Hooks

Since4.3.0
Deprecatedn/a
apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context )
Parameters: (2)
  • (int) $attachment_id The attachment ID of the cropped image.
    Required: Yes
  • (string) $context The Customizer control requesting the cropped image.
    Required: Yes
Defined at:
Codex:

Filters the attachment ID for a cropped image.





Source

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