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

Datafeedr API, version 1.0.21. 25 lines.

- Page: https://pluginprobe.com/plugins/datafeedr-api/1.0.21/code/functions/upgrade.php
- Raw: https://pluginprobe.com/plugins/datafeedr-api/1.0.21/raw/functions/upgrade.php
- Modified: 2014-05-20T14:20:44+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.0.21/code/functions/upgrade.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * 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 );

```
