WC_Notes_Refund_Returns::on_newly_installedpublic staticWC 10.5.0

Add the note when WooCommerce is newly installed.

Method of the class: WC_Notes_Refund_Returns{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = WC_Notes_Refund_Returns::on_newly_installed();

Changelog

Since 10.5.0 Introduced.

WC_Notes_Refund_Returns::on_newly_installed() code WC 10.7.0

public static function on_newly_installed() {
	$page_id = get_option( 'woocommerce_refund_returns_page_id' );
	if ( $page_id ) {
		self::possibly_add_note( $page_id );
	}
}