A WordPress-centric search engine for devs and theme authors



load_image_to_edit_filesystempath ›

Since3.1.0
Deprecatedn/a
apply_filters( 'load_image_to_edit_filesystempath', path_join( dirname( $filepath )
Parameters: (3)
  • (string) $path Path to the current image.
    Required: Yes
  • (string) $attachment_id Attachment ID.
    Required: Yes
  • (string) $size Size of the image.
    Required: Yes
Defined at:
Codex:

Filters the path to the current image.

The filter is evaluated for all image sizes except 'full'.





Source

$filepath = apply_filters( 'load_image_to_edit_filesystempath', path_join( dirname( $filepath ), $data['file'] ), $attachment_id, $size );