WC_WCCOM_Site_Installer::get_state( string $key = '' )

Get the product install state.


Description Description


Parameters Parameters

$key

(Optional) Key in state data. If empty key is passed array of state will be returned.

Default value: ''


Top ↑

Return Return

(array) Product install state.


Top ↑

Source Source

File: includes/wccom-site/class-wc-wccom-site-installer.php

	public static function get_state( $key = '' ) {
		$state = WC_Helper_Options::get( 'product_install', self::$default_state );
		if ( ! empty( $key ) ) {
			return isset( $state[ $key ] ) ? $state[ $key ] : null;
		}

		return $state;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.