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
public function get( $prop = '' ) { if ( ! isset( $this->{$prop} ) ) { return ''; } return $this->{$prop}; }
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.