WC_Notes_Refund_Returns::on_newly_installed │ public static │ WC 10.5.0

Add the note when WooCommerce is newly installed.

Метод класса: WC_Notes_Refund_Returns{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

$result = WC_Notes_Refund_Returns::on_newly_installed();

Список изменений

С версии 10.5.0 Введена.

Код WC_Notes_Refund_Returns::on_newly_installed() WC 11.2.2

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