Provides an API to easily access information about your Wordpress installation, it's themes and plugins.
composer require makeweb/wordpress-inspector
require __DIR__.'/vendor/autoload.php';
$inspector = new MakeWeb\WordpressInspector\Inspector;
echo($inspector->themeName());
Returns the name of the current theme.
Returns the version string of the current theme.
Returns true if the current theme has a parent theme.
Returns true if the current theme is a child theme.
Returns true if the Divi theme is installed.
Returns true if the Divi Builder plugin is installed.
Returns the version string of the current theme's parent theme or NULL
if the current theme has no parent theme.
Returns the name of the current theme's parent theme or NULL
if the current theme has no parent theme.