woocommerce_in_plugin_update_message │ хук-фильтр │ WC 3.1.0

Filters the inline update message shown for WooCommerce on the Plugins screen.

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

add_filter( 'woocommerce_in_plugin_update_message', 'wp_kama_woocommerce_in_plugin_update_message_filter' );

/**
 * Function for `woocommerce_in_plugin_update_message` filter-hook.
 * 
 * @param string $message Upgrade notice markup, already run through wp_kses_post(), or an empty
 *                        string.
 *
 * @return string
 */
function wp_kama_woocommerce_in_plugin_update_message_filter( $message ){
	// filter...
	return $message;
}
$message(строка)
Upgrade notice markup, already run through wp_kses_post(), or an empty string.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

WC_Plugins_Screen_Updates::in_plugin_update_message()
woocommerce_in_plugin_update_message
woocommerce/includes/admin/plugin-updates/class-wc-plugins-screen-updates.php 78
echo apply_filters( 'woocommerce_in_plugin_update_message', $this->upgrade_notice ? '</p>' . wp_kses_post( $this->upgrade_notice ) . '<p class="dummy">' : '' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The base value is run through wp_kses_post() and the filter returns extension-controlled markup by design.

Где используется хук в WooCommerce

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