bp_get_blog_create_nav_item()

Get the Create a Site nav item.


Return Return

(string)


Source 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 2.2.0
		 *
		 * @param string $output Nav item output.
		 */
		return apply_filters( 'bp_get_blog_create_nav_item', $output );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.