WC_Install::maybe_create_pagespublic staticWC 1.0

Create pages on installation.

Method of the class: WC_Install{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = WC_Install::maybe_create_pages();

WC_Install::maybe_create_pages() code WC 10.4.3

public static function maybe_create_pages() {
	if ( empty( get_option( 'woocommerce_db_version' ) ) ) {
		self::create_pages();
	}
}