WordPress как на ладони
wordpress jino
фильтр не описан

wp_ajax_cropped_attachment_id хук-фильтр . WP 4.3.0

Filters the attachment ID for a cropped image.

Использование

add_filter( 'wp_ajax_cropped_attachment_id', 'filter_function_name_2706', 10, 2 );
function filter_function_name_2706( $attachment_id, $context ){
	// filter...

	return $attachment_id;
}
$attachment_id(int)
The attachment ID of the cropped image.
$context(string)
The Customizer control requesting the cropped image.

Связи хука

Используется в: wp_ajax_crop_image()

Остальные хуки из: wp_ajax_crop_image():

Кусок кода с хуком

Фрагмент из: wp-admin/includes/ajax-actions.php WP 4.9
...
			 * @see wp_generate_attachment_metadata()
			 *
			 * @param array $metadata Attachment metadata.
			 */
			$metadata = apply_filters( 'wp_ajax_cropped_attachment_metadata', $metadata );
			wp_update_attachment_metadata( $attachment_id, $metadata );

			/**
			 * Filters the attachment ID for a cropped image.
			 *
			 * @since 4.3.0
			 *
			 * @param int    $attachment_id The attachment ID of the cropped image.
			 * @param string $context       The Customizer control requesting the cropped image.
			 */
			$attachment_id = apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context );
	}

	wp_send_json_success( wp_prepare_attachment_for_js( $attachment_id ) );
}

/**
 * Ajax handler for generating a password.
 *
 * @since 4.4.0
 */
function wp_ajax_generate_password() {
	wp_send_json_success( wp_generate_password( 24 ) );
}

/**
...