Automattic\WooCommerce\Admin\Notes
DeactivatePlugin::get_note()
Get the note.
{} Это метод класса: DeactivatePlugin{}
Хуков нет.
Возвращает
Note
.
Использование
$result = DeactivatePlugin::get_note();
Код DeactivatePlugin::get_note() DeactivatePlugin::get note WC 6.4.1
public static function get_note() { $note = new Note(); $note->set_title( __( 'Deactivate old WooCommerce Admin version', 'woocommerce' ) ); $note->set_content( __( 'Your current version of WooCommerce Admin is outdated and a newer version is included with WooCommerce. We recommend deactivating the plugin and using the stable version included with WooCommerce.', 'woocommerce' ) ); $note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL ); $note->set_name( self::NOTE_NAME ); $note->set_content_data( (object) array() ); $note->set_source( 'woocommerce-admin' ); $note->add_action( 'deactivate-feature-plugin', __( 'Deactivate', 'woocommerce' ), wc_admin_url( '&action=deactivate-feature-plugin' ), Note::E_WC_ADMIN_NOTE_UNACTIONED, true ); $note->add_nonce_to_action( 'deactivate-feature-plugin', 'deactivate-plugin_' . WC_ADMIN_PLUGIN_FILE, '' ); return $note; }