WC_Helper_Updater::setup_message_for_expired_and_expiring_subscriptions()
Add the hook for modifying default WPCore update notices on the plugins management page. This is for plugins with expired or expiring subscriptions.
Метод класса: WC_Helper_Updater{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Helper_Updater::setup_message_for_expired_and_expiring_subscriptions();
Код WC_Helper_Updater::setup_message_for_expired_and_expiring_subscriptions() WC Helper Updater::setup message for expired and expiring subscriptions WC 9.4.2
public static function setup_message_for_expired_and_expiring_subscriptions() { foreach ( WC_Helper::get_local_woo_plugins() as $plugin ) { add_action( 'in_plugin_update_message-' . $plugin['_filename'], array( __CLASS__, 'display_notice_for_expired_and_expiring_subscriptions' ), 10, 2 ); } }