No, you can not really tell that from within WordPress itself since Lightbox with PhotoSwipe is either globally enabled or not. The only exception is when you disabled it for specific post IDs or post types (see “Excluded pages/posts” and “Excluded post types” in the General settings). Also if you created a custom lbwps_enabled
filter function that may also disable it for certain areas of your site.
If you want to find out if Lightbox with PhotoSwipe is actually doing something on a specific post or page, you need to check if the HTML code in the browser contains links (<a ...
) with the text data-lbwps-width
or data-lbwps-height
– because the plugin adds these attributes to image links to provide the image width and height to PhotoSwipe. But keep in mind this is not done in the source of the post or page but only in the final HTML output since Lightbox with PhotoSwipe adds this dynamically using an output filter. So you will not find this in the WordPress database anywhere.
You may need to create some script to fetch all pages from your website and check the output it contains data-lbwps-width
. But otherwise there is no way to tell.