bp_get_button( array|string $args = '' )

Create and return a button.


Description Description

See also See also

  • BP_Button: for a description of arguments and return value.

Top ↑

Parameters Parameters

$args

(Optional) See BP_Button.

Default value: ''


Top ↑

Return Return

(string) HTML markup for the button.


Top ↑

Source Source

File: bp-core/bp-core-template.php

	function bp_get_button( $args = '' ) {
		$button = new BP_Button( $args );

		/**
		 * Filters the requested button output.
		 *
		 * @since 1.2.6
		 *
		 * @param string    $contents  Button context to be used.
		 * @param array     $args      Array of args for the button.
		 * @param BP_Button $button    BP_Button object.
		 */
		return apply_filters( 'bp_get_button', $button->contents, $args, $button );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.6 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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