Your IP : 216.73.216.122


Current Path : /home/ereika83/www/wp-content/plugins/wpmu-dev-seo/includes/core/buddypress/
Upload File :
Current File : /home/ereika83/www/wp-content/plugins/wpmu-dev-seo/includes/core/buddypress/class-api.php

<?php
/**
 * BuddyPress Api Provider.
 *
 * @package SmartCrawl
 */

namespace SmartCrawl\BuddyPress;

/**
 * BuddyPress Api.
 *
 * @method object|null buddypress()
 * @method string bp_current_component()
 * @method \BP_Groups_Group groups_get_current_group()
 * @method string bp_core_get_user_domain( int $user_id )
 * @method string bp_core_get_user_displayname( int $user_id )
 * @method string bp_core_get_username( int $user_id )
 * @method object bp_get_displayed_user()
 * @method string bp_get_group_name( \BP_Groups_Group $group )
 * @method string bp_get_group_description( \BP_Groups_Group $group )
 * @method string bp_get_group_permalink( \BP_Groups_Group $group )
 * @method array groups_get_groups( array $args )
 */
class Api {

	/**
	 * Magic method to get function.
	 *
	 * @param string $name      Name of function.
	 * @param array  $arguments Arguments.
	 *
	 * @return mixed|null
	 */
	public function __call( $name, $arguments ) {
		if ( function_exists( $name ) ) {
			return call_user_func_array( $name, $arguments );
		}

		return null;
	}
}