bp_modify_page_title

  • apply_filters( 'bp_modify_page_title', $title . " $sep ", $title, $sep, $seplocation )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-filters.php :: Trac Source Line: 324
      	// Blog creation page
      	} elseif ( bp_is_create_blog() ) {
      		$title = __( 'Create a Site', 'buddypress' );
      	}
      
      	// Some BP nav items contain item counts. Remove them
      

Hook: add_filter: bp_modify_page_title instances (4)

  • add_filter( 'bp_modify_page_title', 'bp_forums_add_forum_topic_to_page_title', 9, 4 )
    $tag: bp_modify_page_title
    $function_to_add: bp_forums_add_forum_topic_to_page_title
    $priority: 9
    $accepted_args: 4

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 115
      function bp_forums_add_forum_topic_to_page_title( $title, $original_title, $sep, $seplocation  ) {
      	global $bp;
      
      	if ( bp_is_current_action( 'forum' ) && bp_is_action_variable( 'topic', 0 ) )
      		if ( bp_has_forum_topic_posts() )
      			$title .= bp_get_the_topic_title() . " $sep ";
      
      	return $title;
      }
      add_filter( 'bp_modify_page_title', 'bp_forums_add_forum_topic_to_page_title', 9, 4 );
      
      /**
       * bp_forums_strip_mentions_on_post_edit( $title )
       *
       * Removes the anchor tag autogenerated for at-mentions when forum topics and posts are edited.
       * Prevents embedded anchor tags.
       *
       * @global object $bp
       * @param string $content
       * @return string $content
      
  • add_filter( 'bp_modify_page_title', 'wptexturize'     )
    $tag: bp_modify_page_title
    $function_to_add: wptexturize
    $priority: 0
    $accepted_args: 0

    Source Reference:

  • add_filter( 'bp_modify_page_title', 'convert_chars'   )
    $tag: bp_modify_page_title
    $function_to_add: convert_chars
    $priority: 0
    $accepted_args: 0

    Source Reference:

  • add_filter( 'bp_modify_page_title', 'esc_html'        )
    $tag: bp_modify_page_title
    $function_to_add: esc_html
    $priority: 0
    $accepted_args: 0

    Source Reference:

Comments are closed.