BP_Nouveau_Group_Meta

Group template meta backwards compatibility class.


Source Source

File: bp-templates/bp-nouveau/includes/groups/classes.php

class BP_Nouveau_Group_Meta {
	/**
	 * Used to get the template meta used in Groups loop.
	 *
	 * @since 7.0.0
	 * @var string $meta The template meta used in Groups loop.
	 */
	public $meta = '';

	/**
	 * Magic getter.
	 *
	 * This exists specifically for supporting deprecated object vars.
	 *
	 * @since 7.0.0
	 *
	 * @param string $key
	 * @return string
	 */
	public function __get( $key = '' ) {
		/* translators: %s is the name of the function to use instead of the deprecated one */
		_doing_it_wrong( 'bp_nouveau_group_meta', sprintf( __( 'Please use %s instead', 'buddypress' ), 'bp_nouveau_the_group_meta( array( \'keys\' => \'' . $key . '\' ) )' ) , '7.0.0' );

		// Backwards compatibility.
		return bp_nouveau_the_group_meta( array( 'keys' => $key, 'echo' => false ) );
	}

	/**
	 * Constructor
	 *
	 * @since 7.0.0
	 */
	public function __construct() {
		// Backwards compatibility.
		$this->meta = bp_nouveau_the_group_meta( array( 'echo' => false ) );
	}
}

Methods Methods


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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