# datafeedr-api/1.4.3/functions/upgrade.php

Datafeedr API, version 1.4.3. 25 lines.

- Page: https://pluginprobe.com/plugins/datafeedr-api/1.4.3/code/functions/upgrade.php
- Raw: https://pluginprobe.com/plugins/datafeedr-api/1.4.3/raw/functions/upgrade.php
- Modified: 2022-02-16T13:59:30+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/datafeedr-api/1.4.3/code/functions/upgrade.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || exit;

/**
 * BEGIN
 * 
 * Get previous version stored in database.
 */
$previous_version = get_option( 'dfrapi_version', FALSE );


/**
 * Upgrade functions go here...
 */



/**
 * END
 * 
 * Now that any upgrade functions are performed, update version in database.
 */
update_option( 'dfrapi_version', DFRAPI_VERSION );

```
