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



get_attached_file › Hooks de Filtros WordPress

Desde2.1.0
Obsoleton/a
› apply_filters( 'get_attached_file', $file, $attachment_id )
Parâmetros: (2)
  • () file The file path to where the attached file should be, false otherwise.
    Required: Yes
  • () attachment_id Attachment ID.
    Required: Yes
Definido em:
Codex:

Filters the attached file based on the given ID.





Fonte

return apply_filters( 'get_attached_file', $file, $attachment_id );