https://github.com/wpbp/page-madness-detector
A WordPress library to detect if the website is using a pagebuilder/visual builder
https://github.com/wpbp/page-madness-detector
Last synced: about 1 year ago
JSON representation
A WordPress library to detect if the website is using a pagebuilder/visual builder
- Host: GitHub
- URL: https://github.com/wpbp/page-madness-detector
- Owner: WPBP
- License: gpl-3.0
- Created: 2022-07-01T10:42:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T10:46:04.000Z (about 3 years ago)
- Last Synced: 2024-10-30T00:54:58.812Z (over 1 year ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Page Madness Detector
The library name is just an information for something that *WordPress developers know*.
Page Builders/Visual Composers create a huge entropy with the various features that they offers with difference by versions.
This library is a way to create a wrapper that let's the developer to detect if they are used in the website.
## Detect list
### Plugins
* Elementor
* Elementor Pro
* WP Bakery
* Site Origin
* Beaver Builder Lite
* Fusion Page Builder
* Oxygen Builder
* Bricks Builder (it is a theme with child but use a constant)
### Themes (that include those solutions)
* Divi
## Examples
```php
detect('elementor') || $builder->detect('elementor-pro') ) {
echo 'Elementor';
}
// Boolean value if a plugin/theme of that list is detect
$builder->has_entropy();
// String if a version number is available or false if not detected
$builder->version('elementor');
// Filters
add_filter( 'page_madness_detector_add_plugin_detection', fuction( $plugins ) {
return $plugins;
});
add_filter( 'page_madness_detector_add_theme_detection', fuction( $themes ) {
return $themes;
});
```