wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_ajax_crop_image_pre_save › Hooks de Ações WordPress

Desde4.3.0
Obsoleton/a
do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped )
Parâmetros: (3)
  • (string) $context The Customizer control requesting the cropped image.
    Required: Yes
  • (int) $attachment_id The attachment ID of the original image.
    Required: Yes
  • (string) $cropped Path to the cropped image file.
    Required: Yes
Definido em:
Codex:

Fires before a cropped image is saved.

Allows to add filters to modify the way a cropped image is saved.





Fonte

do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped );