wordpress/wp-content/plugins/widget-css-classes/includes/widget-css-classes-library.class.php
/**
	 * Run install function to see if upgrade is needed.
	 *
	 * @static
	 * @since 1.0
	 */
Run install function to see if upgrade is needed.


Run install function to see if upgrade is needed .
public static function install_plugin() {
		if ( get_option( 'WCSSC_db_version' ) ) {
			$installed_version = get_option( 'WCSSC_db_version' );
		} else {
			$installed_version = 0;
		}
		if ( (string) WCSSC_DB_VERSION !== (string) $installed_version ) {
			self::update( $installed_version );
			update_option( 'WCSSC_db_version', WCSSC_DB_VERSION );
		}
	}
public static function install_plugin ( ) { if ( get_option ( 'WCSSC_db_version' ) ) { $ installed_version = get_option ( 'WCSSC_db_version' ) ; } else { $ installed_version = 0 ; } if ( ( string ) WCSSC_DB_VERSION !== ( string ) $ installed_version ) { self :: update ( $ installed_version ) ; update_option ( 'WCSSC_db_version' , WCSSC_DB_VERSION ) ; } }
Run install function to see if upgrade is needed.
Run install function to see if upgrade is needed .
// get database version from options table // check if the db version is the same as the db version constant // update options