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.
$legacy_api_and_hpos_incompatibility_warning_text
Sortie :
@param string $legacy_api_and_hpos_incompatibility_warning_text Original warning text. @returns string|null Actual warning text to use, or null to suppress the warning.
// Modifier la valeur avec le filtre 'woocommerce_legacy_api_and_hpos_incompatibility_warning_text'
add_filter('woocommerce_legacy_api_and_hpos_incompatibility_warning_text', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($legacy_api_and_hpos_incompatibility_warning_text) {
// Modifier la valeur
return $legacy_api_and_hpos_incompatibility_warning_text;
}
Chargement des actualités...