Saturday, May 21, 2016

WordPress get active theme name

In Wordpress there can be multiple themes installed. But only one theme at a time can be active. If you want to get the name of the active theme in WordPress you can get it.

To get the active theme name use the following code is useful.

<?php
$active_theme_name = wp_get_theme();
?>

$active_theme_name will give you the active theme name.

No comments:

Post a Comment

MS SQL : How to identify fragmentation in your indexes?

Almost all of us know what fragmentation in SQL indexes are and how it can affect the performance. For those who are new Index fragmentation...