bp_get_blog_create_nav_item()
Get the Create a Site nav item.
Description
Return
(string)
Source
File: bp-blogs/bp-blogs-template.php
function bp_get_blog_create_nav_item() { // Get the create a site button. $create_blog_button = bp_get_blog_create_button(); // Make sure the button is available. if ( empty( $create_blog_button ) ) { return; } $output = '<li id="blog-create-nav">' . $create_blog_button . '</li>'; /** * Filters the Create A Site nav item output. * * @since BuddyPress 2.2.0 * * @param string $output Nav item output. */ return apply_filters( 'bp_get_blog_create_nav_item', $output ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.