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



wp_content_img_tag › Hooks de Filtros WordPress

Desde6.0.0
Obsoleton/a
› apply_filters( 'wp_content_img_tag', $filtered_image, $context, $attachment_id )
Parâmetros: (3)
  • () filtered_image Full img tag with attributes that will replace the source img tag.
    Required: Yes
  • () context Additional context, like the current filter name or the function name from where this was called.
    Required: Yes
  • () attachment_id The image attachment ID. May be 0 in case the image is not an attachment.
    Required: Yes
Definido em:
Codex:

Filters an img tag within the content for a given context.





Fonte

$filtered_image = apply_filters( 'wp_content_img_tag', $filtered_image, $context, $attachment_id );