# extendify/3.1.1/app/Shared/Services/PluginsActivation/TranslatePress.php

Extendify, version 3.1.1. 28 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.1/code/app/Shared/Services/PluginsActivation/TranslatePress.php
- Raw: https://pluginprobe.com/plugins/extendify/3.1.1/raw/app/Shared/Services/PluginsActivation/TranslatePress.php
- Modified: 2026-06-11T18:37:12+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/extendify/3.1.1/code/app/Shared/Services/PluginsActivation/TranslatePress.php#L10-L20`.

```php
<?php

namespace Extendify\Shared\Services\PluginsActivation;

defined('ABSPATH') || die('No direct access.');

class TranslatePress extends PluginActivation
{
    // phpcs:ignore PSR12.Properties.ConstantVisibility.NotFound
    const API_URL = 'https://translatepress.com/wp-json/tpext/v1/free-license';

    public static function slug(): string
    {
        return 'translatepress-multilingual';
    }

    protected static function saveKey(array $data)
    {
        $key = $data['license_key'] ?? null;

        if (!$key) {
            return;
        }

        \update_option('trp_license_key', \sanitize_text_field($key));
    }
}

```
