Plugin Directory

Changeset 2184329


Ignore:
Timestamp:
11/01/2019 10:45:02 AM (6 years ago)
Author:
badprle
Message:

Testing

Location:
emitto/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emitto/trunk/includes/emitto-functions.php

    r2179274 r2184329  
    99}
    1010//Emitto - Core Functionality
     11define ( 'MY_PLUGIN_VERSION', '2.0.0');
     12
     13
     14function my_plugin_activation() {
     15    $version = get_option( 'my_plugin_version' );
     16
     17
     18    update_option( 'my_plugin_version', MY_PLUGIN_VERSION );
     19    return MY_PLUGIN_VERSION;
     20}
     21
     22function my_plugin_is_current_version(){
     23    $version = get_option( 'my_plugin_version' );
     24    return version_compare($version, MY_PLUGIN_VERSION, '=') ? true : false;
     25}
     26if ( !my_plugin_is_current_version() ) my_plugin_activation();
    1127
    1228
  • emitto/trunk/readme.txt

    r2179274 r2184329  
    44Plugin URI:   https://emitto.io/
    55Author:       https://producthive.io/
    6 Version:      1.1
     6Version:      2.0
    77Text Domain:  Emitto
    88License:      GPL v2 or later
Note: See TracChangeset for help on using the changeset viewer.