WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
класс не описан

Automattic\WooCommerce\Admin\Notes

WC_Admin_Notes_Review_Shipping_Settings{} WC 1.0

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Admin_Notes_Review_Shipping_Settings = new WC_Admin_Notes_Review_Shipping_Settings();
// use class methods

Методы

  1. get_note()

Код WC_Admin_Notes_Review_Shipping_Settings{} WC 4.7.1

<?php
class WC_Admin_Notes_Review_Shipping_Settings {
	use NoteTraits;

	const NOTE_NAME = 'wc-admin-review-shipping-settings';

	/**
	 * Get the note.
	 *
	 * @return WC_Admin_Note
	 */
	public static function get_note() {
		$note = new WC_Admin_Note();

		$note->set_name( self::NOTE_NAME );
		$note->set_source( 'woocommerce-admin' );
		$note->set_title( __( 'Review your shipping settings', 'woocommerce' ) );
		$note->set_content(
			__(
				"Based on the information that you provided we've configured some shipping rates and options for your store:<br/><br/>
				Domestic orders: free shipping<br/>
				International orders: disabled<br/>
				Label printing: enabled",
				'woocommerce'
			)
		);
		$note->set_content_data( (object) array() );
		$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_INFORMATIONAL );

		$note->add_action(
			'edit-shipping-settings',
			__( 'Edit shipping settings', 'woocommerce' ),
			admin_url( 'admin.php?page=wc-settings&tab=shipping' ),
			'unactioned',
			true
		);

		return $note;
	}
}