Last active
December 10, 2015 18:28
-
-
Save leanda/4474336 to your computer and use it in GitHub Desktop.
WordPress: Checking if a Widget has Been Activated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( is_active_widget( 'widget_name' ) ) { | |
echo '<h3>Heading</h3>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment