bp_core_number_format

  • apply_filters( 'bp_core_number_format', number_format( $number, $decimals ), $number, $decimals )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 579
       * @param str $number
       * @param bool $decimals
       * @return str
       */
      function bp_core_number_format( $number, $decimals = false ) {
      	// Check we actually have a number first.
      	if ( empty( $number ) )
      		return $number;
      
      	return apply_filters( 'bp_core_number_format', number_format( $number, $decimals ), $number, $decimals );
      }
      
      /**
       * Based on function created by Dunstan Orchard - http://1976design.com
       *
       * This function will return an English representation of the time elapsed
       * since a given date.
       * eg: 2 hours and 50 minutes
       * eg: 4 days
       * eg: 4 weeks and 6 days
      

Comments are closed.