widget_title

widget_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('widget_title') is found 14 times:

  • /wp-includes/widgets/class-wp-nav-menu-widget.php line 54
    		$default_title = __( 'Menu' );
    		$title         = ! empty( $instance['title'] ) ? $instance['title'] : '';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		echo $args['before_widget'];
    
    		if ( $title ) {
    			echo $args['before_title'] . $title . $args['after_title'];
    		}
    
  • /wp-includes/widgets/class-wp-widget-archives.php line 48
    		$default_title = __( 'Archives' );
    		$title         = ! empty( $instance['title'] ) ? $instance['title'] : $default_title;
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		$count    = ! empty( $instance['count'] ) ? '1' : '0';
    		$dropdown = ! empty( $instance['dropdown'] ) ? '1' : '0';
    
    		echo $args['before_widget'];
    
    
  • /wp-includes/widgets/class-wp-widget-calendar.php line 54
    	public function widget( $args, $instance ) {
    		$title = ! empty( $instance['title'] ) ? $instance['title'] : '';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		echo $args['before_widget'];
    		if ( $title ) {
    			echo $args['before_title'] . $title . $args['after_title'];
    		}
    		if ( 0 === self::$instance ) {
    
  • /wp-includes/widgets/class-wp-widget-categories.php line 52
    		$default_title = __( 'Categories' );
    		$title         = ! empty( $instance['title'] ) ? $instance['title'] : $default_title;
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		$count        = ! empty( $instance['count'] ) ? '1' : '0';
    		$hierarchical = ! empty( $instance['hierarchical'] ) ? '1' : '0';
    		$dropdown     = ! empty( $instance['dropdown'] ) ? '1' : '0';
    
    		echo $args['before_widget'];
    
  • /wp-includes/widgets/class-wp-widget-custom-html.php line 136
     
    		$instance = array_merge( $this->default_instance, $instance );
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    
    		// Prepare instance data that looks like a normal Text widget.
    		$simulated_text_widget_instance = array_merge(
    			$instance,
    			array(
    				'text'   => isset( $instance['content'] ) ? $instance['content'] : '',
    
  • /wp-includes/widgets/class-wp-widget-media.php line 240
     
    		echo $args['before_widget'];
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    
    		if ( $title ) {
    			echo $args['before_title'] . $title . $args['after_title'];
    		}
    
    		/**
    
  • /wp-includes/widgets/class-wp-widget-meta.php line 50
    		$default_title = __( 'Meta' );
    		$title         = ! empty( $instance['title'] ) ? $instance['title'] : $default_title;
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		echo $args['before_widget'];
    
    		if ( $title ) {
    			echo $args['before_title'] . $title . $args['after_title'];
    		}
    
  • /wp-includes/widgets/class-wp-widget-pages.php line 56
    		 * @param string $title    The widget title. Default 'Pages'.
    		 * @param array  $instance Array of settings for the current widget.
    		 * @param mixed  $id_base  The widget ID.
    		 */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		$sortby  = empty( $instance['sortby'] ) ? 'menu_order' : $instance['sortby'];
    		$exclude = empty( $instance['exclude'] ) ? '' : $instance['exclude'];
    
    		if ( 'menu_order' === $sortby ) {
    			$sortby = 'menu_order, post_title';
    
  • /wp-includes/widgets/class-wp-widget-recent-comments.php line 90
    		$default_title = __( 'Recent Comments' );
    		$title         = ( ! empty( $instance['title'] ) ) ? $instance['title'] : $default_title;
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		$number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 5;
    		if ( ! $number ) {
    			$number = 5;
    		}
    
    
  • /wp-includes/widgets/class-wp-widget-recent-posts.php line 53
    		$default_title = __( 'Recent Posts' );
    		$title         = ( ! empty( $instance['title'] ) ) ? $instance['title'] : $default_title;
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		$number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 5;
    		if ( ! $number ) {
    			$number = 5;
    		}
    		$show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false;
    
  • /wp-includes/widgets/class-wp-widget-rss.php line 87
    			$title = ! empty( $desc ) ? $desc : __( 'Unknown Feed' );
    		}
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		if ( $title ) {
    			$feed_link = '';
    			$feed_url  = strip_tags( $url );
    			$feed_icon = includes_url( 'images/rss.png' );
    			$feed_link = sprintf(
    
  • /wp-includes/widgets/class-wp-widget-search.php line 47
    	public function widget( $args, $instance ) {
    		$title = ! empty( $instance['title'] ) ? $instance['title'] : '';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		echo $args['before_widget'];
    		if ( $title ) {
    			echo $args['before_title'] . $title . $args['after_title'];
    		}
    
    
  • /wp-includes/widgets/class-wp-widget-tag-cloud.php line 89
    			return;
    		}
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		echo $args['before_widget'];
    		if ( $title ) {
    			echo $args['before_title'] . $title . $args['after_title'];
    		}
    
    
  • /wp-includes/widgets/class-wp-widget-text.php line 233
     
    		$title = ! empty( $instance['title'] ) ? $instance['title'] : '';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
    		$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    
    		$text                  = ! empty( $instance['text'] ) ? $instance['text'] : '';
    		$is_visual_text_widget = ( ! empty( $instance['visual'] ) && ! empty( $instance['filter'] ) );
    
    		// In 4.8.0 only, visual Text widgets get filter=content, without visual prop; upgrade instance props just-in-time.
    		if ( ! $is_visual_text_widget ) {