WC_Install::add_admin_note_after_page_createdpublic staticWC 5.6.0

Deprecated since 0.5.0. It is no longer supported and may be removed in future releases. Use d instead.

Adds an admin inbox note after a page has been created to notify user. For example to take action to edit the page such as the Refund and returns page.

Method of the class: WC_Install{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = WC_Install::add_admin_note_after_page_created();

Changelog

Since 5.6.0 Introduced.
Deprecated since 10.5.0 No longer used.

WC_Install::add_admin_note_after_page_created() code WC 10.7.0

public static function add_admin_note_after_page_created() {
	wc_deprecated_function( 'WC_Install::add_admin_note_after_page_created', '10.5.0' );

	if ( ! WC()->is_wc_admin_active() ) {
		return;
	}

	$page_id = get_option( 'woocommerce_refund_returns_page_created', null );

	if ( null === $page_id ) {
		return;
	}

	WC_Notes_Refund_Returns::possibly_add_note( $page_id );
}