wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



load_image_to_edit_attachmenturl › WordPress Filter Hooks

Seit3.1.0
Veraltetn/v
apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id )
Parameter: (3)
  • (string|false) $image_url Current image URL.
    Erforderlich: Ja
  • (int) $attachment_id Attachment ID.
    Erforderlich: Ja
  • (string|int[]) $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Erforderlich: Ja
Definiert in:
Codex:

Filters the path to an attachment's URL when editing the image.

The filter is only evaluated if the file isn't stored locally and allow_url_fopen is enabled on the server.





Quellcode

$filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size );