bbp_admin_repair_tool_translate_overhead( string $overhead = '' )
Maybe translate a repair tool overhead name
Description Description
Parameters Parameters
- $overhead
-
(Optional)
Default value: ''
Return Return
(string)
Source Source
File: includes/admin/tools/common.php
function bbp_admin_repair_tool_translate_overhead( $overhead = '' ) {
// Get the name of the component
switch ( $overhead ) {
case 'low' :
$name = esc_html__( 'Low', 'bbpress' );
break;
case 'medium' :
$name = esc_html__( 'Medium', 'bbpress' );
break;
case 'high' :
$name = esc_html__( 'High', 'bbpress' );
break;
default :
$name = ucwords( $overhead );
break;
}
return $name;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |