Create a capability name for a write panel given its name. This function is
copied from WP's sanitize_title_with_dashes($title) (formatting.php)
public static GetCapabilityName ( string $customWritePanelName ) : string | ||
$customWritePanelName | string | panel name |
return | string | capability name |