Skip to content

Instantly share code, notes, and snippets.

@leanda
Last active December 10, 2015 18:28
Show Gist options
  • Save leanda/4474336 to your computer and use it in GitHub Desktop.
Save leanda/4474336 to your computer and use it in GitHub Desktop.
WordPress: Checking if a Widget has Been Activated
<?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