WordPress at Your Fingertips
function is not described

WC_Install::add_admin_note_after_page_created() public WC 5.6.0

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.

{} It's a method of the class: WC_Install{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Install::add_admin_note_after_page_created();

Changelog

Since 5.6.0 Introduced.

Code of WC_Install::add_admin_note_after_page_created() WC 5.7.1

public static function add_admin_note_after_page_created() {
	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 );
}