BP_Blogs_Component::setup_title()

Set up the title for pages and .</p> </section> <div class="content-toc"><style> .toc-jump { text-align: right; font-size: 12px; } .page .toc-heading { margin-top: -50px; padding-top: 50px !important; }</style><div class="table-of-contents"><h3>Contents</h3><ul class="items"><li><a href="#source">Source</a> </ul></li> <li><a href="#related">Related</a> <ul> <li><a href="#uses">Uses</a> </ul></li> <li><a href="#user-contributed-notes">User Contributed Notes</a></ul> </div> <hr /> <section class="source-content"> <h3 class="toc-heading" id="source" tabindex="-1">Source <a href="#source" class="anchor"><span aria-hidden="true">#</span><span class="screen-reader-text">Source</span></a></h3> <p> File: <a href="https://wbremedy.com/reference/files/bp-blogs/classes/class-bp-blogs-component.php/">bp-blogs/classes/class-bp-blogs-component.php</a> </p> <div class="source-code-container"> <pre class="brush: php; toolbar: false; first-line: 315"> public function setup_title() { // Set up the component options navigation for Site. if ( bp_is_blogs_component() ) { $bp = buddypress(); if ( bp_is_my_profile() ) { if ( bp_is_active( 'xprofile' ) ) { $bp->bp_options_title = __( 'My Sites', 'buddypress' ); } // If we are not viewing the logged in user, set up the current // users avatar and name. } else { $bp->bp_options_avatar = bp_core_fetch_avatar( array( 'item_id' => bp_displayed_user_id(), 'type' => 'thumb', 'alt' => sprintf( /* translators: %s: member name */ __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ), ) ); $bp->bp_options_title = bp_get_displayed_user_fullname(); } } parent::setup_title(); } </pre> </div> <p class="source-code-links"> <span> <a href="#" class="show-complete-source">Expand full source code</a> <a href="#" class="less-complete-source">Collapse full source code</a> </span> <span><a href="https://buddypress.trac.wordpress.org/browser/trunk/src/bp-blogs/classes/class-bp-blogs-component.php#L315">View on Trac</a></span> </p> </section> <hr /> <section class="related"> <h2 class="toc-heading" id="related" tabindex="-1">Related <a href="#related" class="anchor"><span aria-hidden="true">#</span><span class="screen-reader-text">Related</span></a></h2> <article class="uses"> <p class="toc-jump"><a href="#top">Top ↑</a></p><h3 class="toc-heading" id="uses" tabindex="-1">Uses <a href="#uses" class="anchor"><span aria-hidden="true">#</span><span class="screen-reader-text">Uses</span></a></h3> <table id="uses-table"> <caption class="screen-reader-text">Uses</caption> <thead> <tr> <th>Uses</th> <th class="related-desc">Description</th> </tr> </thead> <tbody> <tr> <td> <span>bp-core/bp-core-avatars.php:</span> <a href="https://wbremedy.com/reference/functions/bp_core_fetch_avatar/">bp_core_fetch_avatar()</a> </td> <td class="related-desc"> <p>Get an avatar for a BuddyPress object.</p> </td> </tr> <tr> <td> <span>bp-core/classes/class-bp-component.php:</span> <a href="https://wbremedy.com/reference/classes/bp_component/setup_title/">BP_Component::setup_title()</a> </td> <td class="related-desc"> <p>Set up the component title.</p> </td> </tr> <tr> <td> <span>bp-core/bp-core-template.php:</span> <a href="https://wbremedy.com/reference/functions/bp_is_my_profile/">bp_is_my_profile()</a> </td> <td class="related-desc"> <p>Is the current page part of the profile of the logged-in user?</p> </td> </tr> <tr> <td> <span>bp-core/bp-core-template.php:</span> <a href="https://wbremedy.com/reference/functions/bp_is_blogs_component/">bp_is_blogs_component()</a> </td> <td class="related-desc"> <p>Check whether the current page is part of the Blogs component.</p> </td> </tr> <tr> <td> <span>bp-core/bp-core-template.php:</span> <a href="https://wbremedy.com/reference/functions/bp_is_active/">bp_is_active()</a> </td> <td class="related-desc"> <p>Check whether a given component (or feature of a component) is active.</p> </td> </tr> <tr> <td> <span>bp-core/bp-core-template.php:</span> <a href="https://wbremedy.com/reference/functions/bp_displayed_user_id/">bp_displayed_user_id()</a> </td> <td class="related-desc"> <p>Get the ID of the currently displayed user.</p> </td> </tr> <tr> <td> <span>bp-members/bp-members-template.php:</span> <a href="https://wbremedy.com/reference/functions/bp_get_displayed_user_fullname/">bp_get_displayed_user_fullname()</a> </td> <td class="related-desc"> <p>Get the displayed user’s display name.</p> </td> </tr> <tr> <td> <span>bp-loader.php:</span> <a href="https://wbremedy.com/reference/functions/buddypress/">buddypress()</a> </td> <td class="related-desc"> <p>The main function responsible for returning the one true BuddyPress Instance to functions everywhere.</p> </td> </tr> <tbody> </table> <a href="#" class="show-more">Show 3 more uses</a> <a href="#" class="hide-more">Hide more uses</a> </article> </section> <hr /> <section class="user-notes"> <p class="toc-jump"><a href="#top">Top ↑</a></p><h2 class="toc-heading" id="user-contributed-notes" tabindex="-1">User Contributed Notes <a href="#user-contributed-notes" class="anchor"><span aria-hidden="true">#</span><span class="screen-reader-text">User Contributed Notes</span></a></h2> <div id="comments" class="comments-area"> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title"> <small></small></h3><p>You must <a href="https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwbremedy.com%2Freference%2Fclasses%2Fbp_blogs_component%2Fsetup_title%2F%23respond">log in</a> before being able to contribute a note or feedback.</p> </div><!-- #respond --> </div><!-- #comments --> </section> </div> </article> </main><!-- #main --> </div><!-- #primary --> </div><!-- #content --> </div><!-- #page --> <hr class="hidden" /> <div id="footer"> <div class="links"> <p> See also: <a href="https://wordpress.org">WordPress.org</a> • <a href="https://bbpress.org">bbPress.org</a> • <a href="https://buddypress.org">BuddyPress.org</a> • <a href="https://ma.tt">Matt</a> • <a href="https://wbremedy.com/feed/">Blog RSS</a> </p> </div> <div class="details"> <p> <a href="https://twitter.com/buddypressdev" class="twitter">Follow BuddyPress on Twitter</a> • <a href="https://buddypress.org/about/gpl/">GPL</a> • <a href="https://buddypress.org/contact/">Contact Us</a> • <a href="https://wordpress.org/about/privacy/">Privacy</a> • <a href="https://buddypress.org/terms/">Terms of Service</a> </p> </div> </div> <link rel='stylesheet' id='buttons-css' href='https://wbremedy.com/wp-includes/css/buttons.min.css?ver=5.8.2' type='text/css' media='all' /> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/navigation.js?ver=20181209' id='wporg-developer-navigation-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/skip-link-focus-fix.js?ver=20130115' id='wporg-developer-skip-link-focus-fix-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/search.js?ver=20150430' id='wporg-developer-search-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/menu.js?ver=20180201' id='wporg-developer-menu-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/awesomplete.min.js?ver=20160322' id='awesomplete-js'></script> <script type='text/javascript' id='autocomplete-js-extra'> /* <![CDATA[ */ var autocomplete = {"ajaxurl":"https:\/\/wbremedy.com\/wp-admin\/admin-ajax.php","nonce":"82dd4cd4cc"}; /* ]]> */ </script> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/autocomplete.js?ver=20160524' id='autocomplete-js'></script> <script type='text/javascript' id='quicktags-js-extra'> /* <![CDATA[ */ var quicktagsL10n = {"closeAllOpenTags":"Close all open tags","closeTags":"close tags","enterURL":"Enter the URL","enterImageURL":"Enter the URL of the image","enterImageDescription":"Enter a description of the image","textdirection":"text direction","toggleTextdirection":"Toggle Editor Text Direction","dfw":"Distraction-free writing mode","strong":"Bold","strongClose":"Close bold tag","em":"Italic","emClose":"Close italic tag","link":"Insert link","blockquote":"Blockquote","blockquoteClose":"Close blockquote tag","del":"Deleted text (strikethrough)","delClose":"Close deleted text tag","ins":"Inserted text","insClose":"Close inserted text tag","image":"Insert image","ul":"Bulleted list","ulClose":"Close bulleted list tag","ol":"Numbered list","olClose":"Close numbered list tag","li":"List item","liClose":"Close list item tag","code":"Code","codeClose":"Close code tag","more":"Insert Read More tag"}; /* ]]> */ </script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/quicktags.min.js?ver=5.8.2' id='quicktags-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/user-notes.js?ver=20200110' id='wporg-developer-user-notes-js'></script> <script type='text/javascript' id='wporg-developer-user-notes-feedback-js-extra'> /* <![CDATA[ */ var wporg_note_feedback = {"show":"Show Feedback","hide":"Hide Feedback"}; /* ]]> */ </script> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/user-notes-feedback.js?ver=20181023' id='wporg-developer-user-notes-feedback-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-content/themes/wporg-developer/js/tabs.js?ver=20160824' id='wporg-developer-tabs-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/wp-embed.min.js?ver=5.8.2' id='wp-embed-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/dist/vendor/regenerator-runtime.min.js?ver=0.13.7' id='regenerator-runtime-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0' id='wp-polyfill-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/dist/dom-ready.min.js?ver=71883072590656bf22c74c7b887df3dd' id='wp-dom-ready-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/dist/hooks.min.js?ver=a7edae857aab69d69fa10d5aef23a5de' id='wp-hooks-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/dist/i18n.min.js?ver=5f1269854226b4dd90450db411a12b79' id='wp-i18n-js'></script> <script type='text/javascript' id='wp-i18n-js-after'> wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } ); </script> <script type='text/javascript' id='wp-a11y-js-translations'> ( function( domain, translations ) { var localeData = translations.locale_data[ domain ] || translations.locale_data.messages; localeData[""].domain = domain; wp.i18n.setLocaleData( localeData, domain ); } )( "default", { "locale_data": { "messages": { "": {} } } } ); </script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/dist/a11y.min.js?ver=0ac8327cc1c40dcfdf29716affd7ac63' id='wp-a11y-js'></script> <script type='text/javascript' id='wplink-js-extra'> /* <![CDATA[ */ var wpLinkL10n = {"title":"Insert\/edit link","update":"Update","save":"Add Link","noTitle":"(no title)","noMatchesFound":"No results found.","linkSelected":"Link selected.","linkInserted":"Link inserted.","minInputLength":"3"}; /* ]]> */ </script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/wplink.min.js?ver=5.8.2' id='wplink-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/jquery/ui/core.min.js?ver=1.12.1' id='jquery-ui-core-js'></script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/jquery/ui/menu.min.js?ver=1.12.1' id='jquery-ui-menu-js'></script> <script type='text/javascript' id='jquery-ui-autocomplete-js-extra'> /* <![CDATA[ */ var uiAutocompleteL10n = {"noResults":"No results found.","oneResult":"1 result found. Use up and down arrow keys to navigate.","manyResults":"%d results found. Use up and down arrow keys to navigate.","itemSelected":"Item selected."}; /* ]]> */ </script> <script type='text/javascript' src='https://wbremedy.com/wp-includes/js/jquery/ui/autocomplete.min.js?ver=1.12.1' id='jquery-ui-autocomplete-js'></script> <script type="text/javascript"> tinyMCEPreInit = { baseURL: "https://wbremedy.com/wp-includes/js/tinymce", suffix: ".min", mceInit: {}, qtInit: {'comment':{id:"comment",buttons:"strong,em,ul,ol,li,link"}}, ref: {plugins:"",theme:"modern",language:""}, load_ext: function(url,lang){var sl=tinymce.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.js');sl.markDone(url+'/langs/'+lang+'_dlg.js');} }; </script> <script type="text/javascript"> var ajaxurl = "/wp-admin/admin-ajax.php"; ( function() { var initialized = []; var initialize = function() { var init, id, inPostbox, $wrap; var readyState = document.readyState; if ( readyState !== 'complete' && readyState !== 'interactive' ) { return; } for ( id in tinyMCEPreInit.mceInit ) { if ( initialized.indexOf( id ) > -1 ) { continue; } init = tinyMCEPreInit.mceInit[id]; $wrap = tinymce.$( '#wp-' + id + '-wrap' ); inPostbox = $wrap.parents( '.postbox' ).length > 0; if ( ! init.wp_skip_init && ( $wrap.hasClass( 'tmce-active' ) || ! tinyMCEPreInit.qtInit.hasOwnProperty( id ) ) && ( readyState === 'complete' || ( ! inPostbox && readyState === 'interactive' ) ) ) { tinymce.init( init ); initialized.push( id ); if ( ! window.wpActiveEditor ) { window.wpActiveEditor = id; } } } } if ( typeof tinymce !== 'undefined' ) { if ( tinymce.Env.ie && tinymce.Env.ie < 11 ) { tinymce.$( '.wp-editor-wrap ' ).removeClass( 'tmce-active' ).addClass( 'html-active' ); } else { if ( document.readyState === 'complete' ) { initialize(); } else { document.addEventListener( 'readystatechange', initialize ); } } } if ( typeof quicktags !== 'undefined' ) { for ( id in tinyMCEPreInit.qtInit ) { quicktags( tinyMCEPreInit.qtInit[id] ); if ( ! window.wpActiveEditor ) { window.wpActiveEditor = id; } } } }()); </script> <div id="wp-link-backdrop" style="display: none"></div> <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-labelledby="link-modal-title"> <form id="wp-link" tabindex="-1"> <input type="hidden" id="_ajax_linking_nonce" name="_ajax_linking_nonce" value="e361946f08" /> <h1 id="link-modal-title">Insert/edit link</h1> <button type="button" id="wp-link-close"><span class="screen-reader-text">Close</span></button> <div id="link-selector"> <div id="link-options"> <p class="howto" id="wplink-enter-url">Enter the destination URL</p> <div> <label><span>URL</span> <input id="wp-link-url" type="text" aria-describedby="wplink-enter-url" /></label> </div> <div class="wp-link-text-field"> <label><span>Link Text</span> <input id="wp-link-text" type="text" /></label> </div> <div class="link-target"> <label><span></span> <input type="checkbox" id="wp-link-target" /> Open link in a new tab</label> </div> </div> <p class="howto" id="wplink-link-existing-content">Or link to existing content</p> <div id="search-panel"> <div class="link-search-wrapper"> <label> <span class="search-label">Search</span> <input type="search" id="wp-link-search" class="link-search-field" autocomplete="off" aria-describedby="wplink-link-existing-content" /> <span class="spinner"></span> </label> </div> <div id="search-results" class="query-results" tabindex="0"> <ul></ul> <div class="river-waiting"> <span class="spinner"></span> </div> </div> <div id="most-recent-results" class="query-results" tabindex="0"> <div class="query-notice" id="query-notice-message"> <em class="query-notice-default">No search term specified. Showing recent items.</em> <em class="query-notice-hint screen-reader-text">Search or use up and down arrow keys to select an item.</em> </div> <ul></ul> <div class="river-waiting"> <span class="spinner"></span> </div> </div> </div> </div> <div class="submitbox"> <div id="wp-link-cancel"> <button type="button" class="button">Cancel</button> </div> <div id="wp-link-update"> <input type="submit" value="Add Link" class="button button-primary" id="wp-link-submit" name="wp-link-submit"> </div> </div> </form> </div> </body> </html>