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

Returns a property from this class.

Description

Parameters

$prop

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

Default value: ''

Return

(string)

Source

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

108
109
110
111
112
113
114
public function get( $prop = '' ) {
    if ( ! isset( $this->{$prop} ) ) {
        return '';
    }
 
    return $this->{$prop};
}

Changelog

Changelog
Version Description
BuddyPress 2.7.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.