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

  • private
  • (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'.
  • (string|false) File path or URL on success, false on failure.
Defined at:


Retrieves 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, _load_remote_featured_patterns, wp_load_image

Top Google Results

User discussions

wpseek mobile