[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * Deprecated functions.
   5   *
   6   * @deprecated 8.0.0
   7   */
   8  
   9  // Exit if accessed directly.
  10  defined( 'ABSPATH' ) || exit;
  11  
  12  /**
  13   * Format 'new_avatar' activity actions.
  14   *
  15   * @since 2.0.0
  16   * @deprecated 8.0.0
  17   *
  18   * @param string $action   Static activity action.
  19   * @param object $activity Activity object.
  20   * @return string
  21   */
  22  function bp_xprofile_format_activity_action_new_avatar( $action, $activity ) {
  23      _deprecated_function( __FUNCTION__, '8.0.0', 'bp_members_format_activity_action_new_avatar()' );
  24      return bp_members_format_activity_action_new_avatar( $action, $activity );
  25  }
  26  
  27  /**
  28   * Adds an activity stream item when a user has uploaded a new avatar.
  29   *
  30   * @since 1.0.0
  31   * @since 2.3.4 Add new parameter to get the user id the avatar was set for.
  32   * @deprecated 8.0.0
  33   *
  34   * @param int $user_id The user id the avatar was set for.
  35   * @return bool
  36   */
  37  function bp_xprofile_new_avatar_activity( $user_id = 0 ) {
  38      _deprecated_function( __FUNCTION__, '8.0.0', 'bp_members_new_avatar_activity()' );
  39      return bp_members_new_avatar_activity( $user_id );
  40  }
  41  
  42  /**
  43   * Should the old BuddyBar be forced in place of the WP admin bar?
  44   *
  45   * We deprecated the BuddyBar in v2.1.0, but have completely removed it in
  46   * v8.0.
  47   *
  48   * @since 1.6.0
  49   * @deprecated 8.0.0
  50   *
  51   * @return bool
  52   */
  53  function bp_force_buddybar() {
  54      _deprecated_function( __FUNCTION__, '8.0' );
  55  
  56      return false;
  57  }


Generated: Thu Apr 18 01:01:15 2024 Cross-referenced by PHPXref 0.7.1