/**
  * Turn off the comment's feed link.
  *
  * Only works for WordPress >= 4.4.0.
  *
  * @since 0.4.0
  *
  * @param string $boolean 
  *
  * @return boolean
  */
 public function feed_links_show_comments_feed($boolean)
 {
     // If 'post' type is the only type supporting comments, then disable the comment feed link
     if (!dwpb_post_types_with_feature('comments')) {
         $boolean = false;
     }
     return $boolean;
 }
 /**
  * Filter the widget removal & check for reasons to not remove specific widgets.
  *
  * @since 0.4.0
  *
  * @param boolean $boolean
  * @param string $widget
  *
  * @return boolean
  */
 public function filter_widget_removal($boolean, $widget)
 {
     // Remove Categories Widget
     if ('WP_Widget_Categories' == $widget && dwpb_post_types_with_tax('category')) {
         $boolean = false;
     }
     // Remove Recent Comments Widget if posts are the only type with comments
     if ('WP_Widget_Recent_Comments' == $widget && dwpb_post_types_with_feature('comments')) {
         $boolean = false;
     }
     // Remove Tag Cloud
     if ('WP_Widget_Tag_Cloud' == $widget && dwpb_post_types_with_tax('post_tag')) {
         $boolean = false;
     }
     return $boolean;
 }