定制 wpbp/page-madness-detector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wpbp/page-madness-detector

最新稳定版本:1.0.1

Composer 安装命令:

composer require wpbp/page-madness-detector

包简介

A WordPress library to detect if the website is using a pagebuilder/visual builder

README 文档

README

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
$builder = new Page_Madness_Detector();
// Specific plugin/theme
if ( $builder->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;
});

统计信息

  • 总下载量: 4.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2022-07-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固