Jetpack_Likes::is_attachment_enabled PHP Method

is_attachment_enabled() public method

Are Media Likes enabled on single pages?
public is_attachment_enabled ( ) : boolean
return boolean
    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']));
    }