Function wp_attachment_ensure_source_file
Checks if a given attachment has already a shortcut in a given folder id or has generelly shortcuts.
Parameters summary
integer|WP_Post |
$post |
The attachment id or a WP_Post object |
Checks if a given attachment has already a shortcut in a given folder id or has generelly shortcuts.
integer|WP_Post |
$post |
The attachment id or a WP_Post object |