Filter to skip the automatic installation of the WooCommerce Legacy REST API plugin from the WordPress.org plugins directory. By default, this is true (skip installation) if we have a record of previously installing the legacy plugin, and false (do not skip) if we have no record of previously installing the plugin.
$previously_installed_by_us
Sortie :
@param bool $skip_auto_install False, defaulting to "don't skip the plugin automatic installation". @returns bool True to skip the plugin automatic installation, false to install the plugin if necessary.
// Modifier la valeur avec le filtre 'woocommerce_skip_legacy_rest_api_plugin_auto_install'
add_filter('woocommerce_skip_legacy_rest_api_plugin_auto_install', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($previously_installed_by_us) {
// Modifier la valeur
return $previously_installed_by_us;
}
Chargement des actualités...