woocommerce_legacy_api_and_hpos_incompatibility_warning_text filter-hookWC 8.9.0

Filter to modify the warning text that appears in the HPOS section of the features settings page when both the Legacy REST API is active (via WooCommerce core or via the Legacy REST API plugin) and the orders table is in use as the primary data store for orders.

Usage

add_filter( 'woocommerce_legacy_api_and_hpos_incompatibility_warning_text', 'wp_kama_woocommerce_legacy_api_and_hpos_incompatibility_warning_text_filter' );

/**
 * Function for `woocommerce_legacy_api_and_hpos_incompatibility_warning_text` filter-hook.
 * 
 * @param string $legacy_api_and_hpos_incompatibility_warning_text Original warning text.
 *
 * @return string
 */
function wp_kama_woocommerce_legacy_api_and_hpos_incompatibility_warning_text_filter( $legacy_api_and_hpos_incompatibility_warning_text ){

	// filter...
	return $legacy_api_and_hpos_incompatibility_warning_text;
}
$legacy_api_and_hpos_incompatibility_warning_text(string)
Original warning text.

Changelog

Since 8.9.0 Introduced.

Where the hook is called

PluginUtil::generate_incompatible_plugin_feature_warning()
woocommerce_legacy_api_and_hpos_incompatibility_warning_text
woocommerce/src/Utilities/PluginUtil.php 262
$legacy_api_and_hpos_incompatibility_warning_text = apply_filters( 'woocommerce_legacy_api_and_hpos_incompatibility_warning_text', $legacy_api_and_hpos_incompatibility_warning_text );

Where the hook is used in WooCommerce

Usage not found.