Title: profilpr's Replies | WordPress.org

---

# profilpr

  [  ](https://wordpress.org/support/users/profilpr/)

 *   [Profile](https://wordpress.org/support/users/profilpr/)
 *   [Topics Started](https://wordpress.org/support/users/profilpr/topics/)
 *   [Replies Created](https://wordpress.org/support/users/profilpr/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/profilpr/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/profilpr/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/profilpr/engagements/)
 *   [Favorites](https://wordpress.org/support/users/profilpr/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Widgets] Function to check for visibility](https://wordpress.org/support/topic/function-to-check-for-visibility/)
 *  Thread Starter [profilpr](https://wordpress.org/support/users/profilpr/)
 * (@profilpr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/function-to-check-for-visibility/#post-5834586)
 * Hi thanks for your reply. That did the trick!
 * I am using the following in my themes functions.php:
 *     ```
       function sidebar_has_active_widgets($sidebar) {
         include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
         if ( is_plugin_active('dynamic-widgets/dynamic-widgets.php') ) {
           $DW = &$GLOBALS['DW'];
           if (!empty($sidebar) && is_array($DW->removelist) && array_key_exists($sidebar, $DW->removelist)) {
             return false;
           }
         }
         return true;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Recent FB Posts] rfbp-timestamp](https://wordpress.org/support/topic/rfbp-timestamp/)
 *  Thread Starter [profilpr](https://wordpress.org/support/users/profilpr/)
 * (@profilpr)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/rfbp-timestamp/#post-4350917)
 * Brilliant I’ve never thought of that. The question was ment to be a tip to improve
   your plugin.

Viewing 2 replies - 1 through 2 (of 2 total)