Plugin Directory

Changeset 2855312


Ignore:
Timestamp:
01/26/2023 05:13:27 PM (3 years ago)
Author:
nusert
Message:

Fixed issue #

File:
1 edited

Legend:

Unmodified
Added
Removed
  • word-count-analysis/trunk/wca_hook.php

    r2767085 r2855312  
    210210add_action('wp_dashboard_setup', 'wca_add_dashboard_widgets');
    211211
     212/*function wca_upgrade_function($upgrader_object, $options)
     213{
     214    $current_plugin_path_name = plugin_basename(__FILE__);
     215
     216    if ($options['action'] == 'update' && $options['type'] == 'plugin' && isset( $options['plugins'])) {
     217        foreach ($options['plugins'] as $each_plugin) {
     218            if ($each_plugin == $current_plugin_path_name) {
     219                update_option('wca_version', WORD_COUNT_ANALYSIS_VERSION);
     220            }
     221        }
     222    }
     223}
     224add_action('upgrader_process_complete', 'wca_upgrade_function', 10, 2);*/
Note: See TracChangeset for help on using the changeset viewer.