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.
Метод класса: WC_Install{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Install::add_admin_note_after_page_created();
Список изменений
С версии 5.6.0 | Введена. |
Код WC_Install::add_admin_note_after_page_created() WC Install::add admin note after page created WC 9.8.2
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 ); }