BP_Core_HTML_Element::get( string $prop = '' )

Returns a property from this class.


Description Description


Parameters Parameters

$prop

(Optional) Property name. Either 'open_tag', 'inner_html', 'close_tag'.

Default value: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

File: bp-core/classes/class-bp-core-html-element.php

	public function get( $prop = '' ) {
		if ( ! isset( $this->{$prop} ) ) {
			return '';
		}

		return $this->{$prop};
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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