VaultPress::activated_notice PHP Method

activated_notice() public method

show message after activation
public activated_notice ( )
    function activated_notice()
    {
        if ('network' == $this->get_option('activated')) {
            $message = sprintf(__('Each site will need to be registered with VaultPress separately. You can purchase new keys from your <a href="%1$s">VaultPress&nbsp;Dashboard</a>.', 'vaultpress'), 'https://dashboard.vaultpress.com/');
            $this->ui_message($message, 'activated', __('VaultPress has been activated across your network!', 'vaultpress'));
            // key and secret already exist in db
        } elseif ($this->is_registered()) {
            if ($this->check_connection()) {
                $message = sprintf(__('VaultPress has been registered and is currently backing up your site. <a href="%1$s">View Backup Status</a>', 'vaultpress'), admin_url('admin.php?page=vaultpress'));
                $this->ui_message($message, 'registered', __('VaultPress has been activated!', 'vaultpress'));
            }
        }
        $this->delete_option('activated');
    }
VaultPress