Gives opportunity to return routes without invoking the compute intensive REST API.
array(
Sortie :
@param array $routes Array of routes. @param string $namespace Namespace for routes. @param string $context Context, can be edit or view.
// Modifier la valeur avec le filtre 'woocommerce_blocks_pre_get_routes_from_namespace'
add_filter('woocommerce_blocks_pre_get_routes_from_namespace', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array() {
// Modifier la valeur
return array(;
}
Chargement des actualités...