[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/deprecated/ -> 2.9.php (source)

   1  <?php
   2  /**
   3   * Deprecated functions.
   4   *
   5   * @deprecated 2.9.0
   6   */
   7  
   8  // Exit if accessed directly.
   9  defined( 'ABSPATH' ) || exit;
  10  
  11  /**
  12   * Replace default WordPress avatars with BP avatars, if available.
  13   *
  14   * See 'get_avatar' filter description in wp-includes/pluggable.php.
  15   *
  16   * @since 1.1.0
  17   * @since 2.4.0 Added $args parameter to coincide with WordPress 4.2.0.
  18   *
  19   * @param string            $avatar  The avatar path passed to 'get_avatar'.
  20   * @param int|string|object $user    A user ID, email address, or comment object.
  21   * @param int               $size    Size of the avatar image ('thumb' or 'full').
  22   * @param string            $default URL to a default image to use if no avatar is available.
  23   * @param string            $alt     Alternate text to use in image tag. Default: ''.
  24   * @param array             $args    Arguments passed to get_avatar_data(), after processing.
  25   * @return string BP avatar path, if found; else the original avatar path.
  26   */
  27  function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt = '', $args = array() ) {
  28      _deprecated_function( __FUNCTION__, '2.9' );
  29      return $avatar;
  30  }


Generated: Tue Jul 23 01:01:40 2019 Cross-referenced by PHPXref 0.7.1