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



get_attached_file › WordPress Filter Hooks

Seit2.1.0
Veraltetn/v
apply_filters( 'get_attached_file', $file, $attachment_id )
Parameter: (2)
  • () file The file path to where the attached file should be, false otherwise.
    Erforderlich: Ja
  • () attachment_id Attachment ID.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the attached file based on the given ID.





Quellcode

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