function get_human_friendly( $name = null ) {

        // If no name is passed the post_type_name is used.
        if ( ! isset( $name ) ) {

            $name = $this->post_type_name;
        }

        // Return human friendly name.
        return ucwords( strtolower( str_replace( "-", " ", str_replace( "_", " ", $name ) ) ) );
    }
function get_human_friendly( $name = null ) {

        // If no name is passed the post_type_name is used.
        if ( ! isset( $name ) ) {

            $name = $this->post_type_name;
        }

        // Return human friendly name.
        return ucwords( strtolower( str_replace( "-", " ", str_replace( "_", " ", $name ) ) ) );
    }
function get_human_friendly ( $ name = null ) { // If no name is passed the post_type_name is used. if ( ! isset ( $ name ) ) { $ name = $ this -> post_type_name ; } // Return human friendly name. return ucwords ( strtolower ( str_replace ( "-" , " " , str_replace ( "_" , " " , $ name ) ) ) ) ; }
Get human friendly

Returns the human friendly name.

ucwords      capitalize words
strtolower   makes string lowercase before capitalizing
str_replace  replace all instances of hyphens and underscores to spaces

@param string $name The name you want to make friendly.
@return string The human friendly name.
Get human friendly