Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_ajax_crop_image_pre_save ›

Seit4.3.0
Veraltetn/v
do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped )
Parameter: (3)
  • (string) $context The Customizer control requesting the cropped image.
    Erforderlich: Ja
  • (int) $attachment_id The attachment ID of the original image.
    Erforderlich: Ja
  • (string) $cropped Path to the cropped image file.
    Erforderlich: Ja
Definiert in:
Codex:

Fires before a cropped image is saved.

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





Quellcode

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