Description
This function returns a specific point type’s given name in singular or plural form.
Returns
(string) The point types name.
Parameters
Param | Type | Required | Description | |
---|---|---|---|---|
function mycred_get_point_type_name( |
||||
$point_type |
string | No | The point type key. Defaults to the default point type. |
|
$singular |
bool | No |
|
|
) { ... } |