_load_image_to_edit_path


_load_image_to_edit_path ( $attachment_id, $size = 'full' )

Access:
  • private
Parameters:
  • (int) attachment_id Attachment ID.
  • (string|int[]) size Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default 'full'.
Returns:
  • (string|bool) File path or URL on success, false on failure.
Defined at:

Description

Retrieve the path or URL of an attachment's attached file.If the attached file is not present on the local filesystem (usually due to replication plugins), then the URL of the file is returned if `allow_url_fopen` is supported.

Related Functions

load_image_to_edit, wp_read_image_metadata, wp_ajax_image_editor, wp_load_image, get_image_send_to_editor

Top Google Results

User discussions

wpseek mobile