function is_attachment_enabled()
{
$options = $this->get_options();
/**
* Filters whether Likes should be enabled on attachment pages.
*
* @module likes
*
* @since 2.2.0
*
* @param bool $enabled Are Post Likes enabled on attachment pages?
*/
return (bool) apply_filters('wpl_is_attachment_disabled', (bool) in_array('attachment', $options['show']));
}