public function upgrader_process_complete( $wp_upgrader, $options ) {

		if ( empty( $options['plugins'] ) ) {
			return;
		}

		if ( ! is_array( $options['plugins'] ) ) {
			return;
		}

		if ( 'update' === $options['action'] && 'plugin' === $options['type'] ) {
			$plugin_path = plugin_basename( CPTP_PLUGIN_FILE );
			if ( in_array( $plugin_path, $options['plugins'], true ) ) {
				// for update code.
				add_option( 'no_taxonomy_structure', false );
			}
		}
	}
public function upgrader_process_complete( $wp_upgrader, $options ) {

		if ( empty( $options['plugins'] ) ) {
			return;
		}

		if ( ! is_array( $options['plugins'] ) ) {
			return;
		}

		if ( 'update' === $options['action'] && 'plugin' === $options['type'] ) {
			$plugin_path = plugin_basename( CPTP_PLUGIN_FILE );
			if ( in_array( $plugin_path, $options['plugins'], true ) ) {
				// for update code.
				add_option( 'no_taxonomy_structure', false );
			}
		}
	}
public function upgrader_process_complete ( $ wp_upgrader , $ options ) { if ( empty ( $ options [ 'plugins' ] ) ) { return ; } if ( ! is_array ( $ options [ 'plugins' ] ) ) { return ; } if ( 'update' === $ options [ 'action' ] && 'plugin' === $ options [ 'type' ] ) { $ plugin_path = plugin_basename ( CPTP_PLUGIN_FILE ) ; if ( in_array ( $ plugin_path , $ options [ 'plugins' ] , true ) ) { // for update code. add_option ( 'no_taxonomy_structure' , false ) ; } } }
After update complete.

@since 3.0.0

@param object $wp_upgrader WP_Upgrader instance.
@param array  $options Extra information about performed upgrade.
After update complete .