WC_Install::add_admin_note_after_page_created
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. |
WC_Install::add_admin_note_after_page_created() WC Install::add admin note after page created code WC 10.3.5
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 );
}