# wt-security/2.3.24/helpers.php

WebTotem Security, version 2.3.24. 13 lines.

- Page: https://pluginprobe.com/plugins/wt-security/2.3.24/code/helpers.php
- Raw: https://pluginprobe.com/plugins/wt-security/2.3.24/raw/helpers.php
- Modified: 2021-03-01T06:04:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wt-security/2.3.24/code/helpers.php#L10-L20`.

```php
<?php
defined('ABSPATH') or die("Protected By WT!");

function wtsec_isActivePage($page){
    if(wtsec_request()->page === WTSEC_PAGE_PREFIX.$page){
        return "wtotem_nav__link_active";
    }
    return "";
}

function wtsec_cutString($string, $length){
    return (strlen($string) > $length) ? substr($string,0,$length).'...' : $string;
}
```
