Uma área de pesquisa sobre o WordPress para devs e autores do tema



load_image_to_edit_attachmenturl ›

Desde3.1.0
Obsoleton/a
apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id )
Parâmetros: (3)
  • (string) $image_url Current image URL.
    Required: Yes
  • (string) $attachment_id Attachment ID.
    Required: Yes
  • (string) $size Size of the image.
    Required: Yes
Definido em:
Codex:

Filters the image URL if not in the local filesystem.

The filter is only evaluated if fopen is enabled on the server.





Fonte

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