_load_image_to_edit_path


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

Access:
  • private
Parameters:
  • (string) $attachment_id Attachment ID.
  • (string) $size Optional. Image size, defaults to 'full'.
Returns:
  • (string|false) 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 url fopen is supported.

Related Functions

load_image_to_edit, wp_read_image_metadata, _wp_image_editor_choose, wp_load_image, wp_ajax_image_editor

Top Google Results

User discussions

wpseek mobile