bp_word_or_name

  • apply_filters( 'bp_word_or_name', $youtext )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 204
      function bp_word_or_name( $youtext, $nametext, $capitalize = true, $echo = true ) {
      	global $bp;
      
      	if ( $capitalize )
      		$youtext = bp_core_ucfirst($youtext);
      
      	if ( $bp->displayed_user->id == $bp->loggedin_user->id ) {
      		if ( $echo )
      			echo apply_filters( 'bp_word_or_name', $youtext );
      		else
      			return apply_filters( 'bp_word_or_name', $youtext );
      	} else {
      		$fullname = (array)explode( ' ', $bp->displayed_user->fullname );
      		$nametext = sprintf( $nametext, $fullname[0] );
      		if ( $echo )
      			echo apply_filters( 'bp_word_or_name', $nametext );
      		else
      			return apply_filters( 'bp_word_or_name', $nametext );
      	}
      
    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 206
      	global $bp;
      
      	if ( $capitalize )
      		$youtext = bp_core_ucfirst($youtext);
      
      	if ( $bp->displayed_user->id == $bp->loggedin_user->id ) {
      		if ( $echo )
      			echo apply_filters( 'bp_word_or_name', $youtext );
      		else
      			return apply_filters( 'bp_word_or_name', $youtext );
      	} else {
      		$fullname = (array)explode( ' ', $bp->displayed_user->fullname );
      		$nametext = sprintf( $nametext, $fullname[0] );
      		if ( $echo )
      			echo apply_filters( 'bp_word_or_name', $nametext );
      		else
      			return apply_filters( 'bp_word_or_name', $nametext );
      	}
      }
      
  • apply_filters( 'bp_word_or_name', $nametext )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 211
      	if ( $bp->displayed_user->id == $bp->loggedin_user->id ) {
      		if ( $echo )
      			echo apply_filters( 'bp_word_or_name', $youtext );
      		else
      			return apply_filters( 'bp_word_or_name', $youtext );
      	} else {
      		$fullname = (array)explode( ' ', $bp->displayed_user->fullname );
      		$nametext = sprintf( $nametext, $fullname[0] );
      		if ( $echo )
      			echo apply_filters( 'bp_word_or_name', $nametext );
      		else
      			return apply_filters( 'bp_word_or_name', $nametext );
      	}
      }
      
      function bp_get_plugin_sidebar() {
      	locate_template( array( 'plugin-sidebar.php' ), true );
      }
      
      function bp_styles() {
      
    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 213
      			echo apply_filters( 'bp_word_or_name', $youtext );
      		else
      			return apply_filters( 'bp_word_or_name', $youtext );
      	} else {
      		$fullname = (array)explode( ' ', $bp->displayed_user->fullname );
      		$nametext = sprintf( $nametext, $fullname[0] );
      		if ( $echo )
      			echo apply_filters( 'bp_word_or_name', $nametext );
      		else
      			return apply_filters( 'bp_word_or_name', $nametext );
      	}
      }
      
      function bp_get_plugin_sidebar() {
      	locate_template( array( 'plugin-sidebar.php' ), true );
      }
      
      function bp_styles() {
      	do_action( 'bp_styles' );
      	wp_print_styles();
      

Comments are closed.