Automattic\WooCommerce\Admin\Notes
LearnMoreAboutVariableProducts::get_note() public WC 1.0
Get the note.
{} Это метод класса: LearnMoreAboutVariableProducts{}
Хуков нет.
Возвращает
Note/null
. Ничего.
Использование
$result = LearnMoreAboutVariableProducts::get_note();
Код LearnMoreAboutVariableProducts::get_note() LearnMoreAboutVariableProducts::get note WC 5.2.2
public static function get_note() {
$note = new Note();
$note->set_title( __( 'Learn more about variable products', 'woocommerce' ) );
$note->set_content(
__(
'Variable products are a powerful product type that lets you offer a set of variations on a product, with control over prices, stock, image and more for each variation. They can be used for a product like a shirt, where you can offer a large, medium and small and in different colors.',
'woocommerce'
)
);
$note->set_content_data( (object) array() );
$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
$note->set_name( self::NOTE_NAME );
$note->set_source( 'woocommerce-admin' );
$note->add_action(
'learn-more',
__( 'Learn more', 'woocommerce' ),
'https://docs.woocommerce.com/document/variable-product/?utm_source=inbox'
);
return $note;
}