makeweb/wordpress-inspector
Composer 安装命令:
composer require makeweb/wordpress-inspector
包简介
Detect theme information and other information about your wordpress installation
README 文档
README
Provides an API to easily access information about your Wordpress installation, it's themes and plugins.
Installation
With Composer
composer require makeweb/wordpress-inspector
Basic Usage
require __DIR__.'/vendor/autoload.php';
$inspector = new MakeWeb\WordpressInspector\Inspector;
echo($inspector->themeName());
MakeWeb\WordpressInspector\Inspector class API
themeName()
Returns the name of the current theme.
themeVersion()
Returns the version string of the current theme.
themeHasParent()
Returns true if the current theme has a parent theme.
themeIsChild()
Returns true if the current theme is a child theme.
usesDiviTheme()
Returns true if the Divi theme is installed.
usesDiviBuilder()
Returns true if the Divi Builder plugin is installed.
parentThemeVersion()
Returns the version string of the current theme's parent theme or NULL if the current theme has no parent theme.
parentThemeName()
Returns the name of the current theme's parent theme or NULL if the current theme has no parent theme.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-09-13