Function wp_attachment_is_shortcut
Checks if a given attachment is a shortcut, use the $returnSourceId parameter to get the source attachment id.
Located at
attachment.php
Parameters summary
integer|WP_Post |
$post |
The attachment id or a WP_Post object |
boolean |
$returnSourceId = false |
If true, the return will be the source attachment id or 0 if it is no shortcut |
Return value summary
boolean
|
Boolean or int or 0 |