bbp_number_format

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

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-functions.php :: Trac Source Line: 129
       *                        number and display decimals bool
       * @return string Formatted string
       */
      function bbp_number_format( $number, $decimals = false ) {
      
      	// If empty, set $number to '0'
      	if ( empty( $number ) || !is_numeric( $number ) )
      		$number = '0';
      
      	return apply_filters( 'bbp_number_format', number_format( $number, $decimals ), $number, $decimals );
      }
      
      /**
       * Convert time supplied from database query into specified date format.
       *
       * @since bbPress (r2455)
       *
       * @param int|object $post Optional. Default is global post object. A post_id or
       *                          post object
       * @param string $d Optional. Default is 'U'. Either 'G', 'U', or php date
      

Comments are closed.