Skip to content

Instantly share code, notes, and snippets.

View janvier005's full-sized avatar
🏠
Working from home

janvier005 janvier005

🏠
Working from home
View GitHub Profile
{
"20000002": {
"marque": "VITO",
"nom": "LUIGI SA"
},
"20166004": {
"marque": "BP",
"nom": "RELAIS BENISTA CARBURANT"
},
"20167004": {
@carlodaniele
carlodaniele / plugin-filter.php
Last active October 13, 2024 06:19
A Must-use plugin to filter active plugins in on a per-page basis.
<?php
/**
* @package active-plugins
* @version 1.0
*
* Plugin Name: Active Plugins
* Plugin URI: http://wordpress.org/extend/plugins/#
* Description: This is a development plugin
* Author: Carlo Daniele
* Version: 1.0
@levantoan
levantoan / [Support-WPML]set_product_category_base_same_shop_base.php
Last active October 14, 2024 15:00
How to set product category base the same as shop base in WooCommerce
<?php
/*
Support WPML - 25/02/2019
/*
function devvn_product_category_base_same_shop_base( $flash = false ){
global $sitepress;
$languages = icl_get_languages('skip_missing=0&orderby=code');
if($languages && !empty($languages)){
$original_lang = ICL_LANGUAGE_CODE;
foreach($languages as $key=>$lang) {
@soderlind
soderlind / class-google-maps-oembed-provider.php
Last active April 29, 2024 11:44
WordPress Google Maps oEmbed Provider using the Google Maps Embed API
<?php
/**
* Create a Google Maps oEmbed Provider using the Google Maps Embed API
*
* @see https://developers.google.com/maps/documentation/embed/
* @link https://gist.github.com/soderlind/db6dae8a73253329bc97ac50d7ebedef
* @since 1.0.0
* @package Google_Maps_oEmbed_Provider
*/
class DSS_oEmbed_Add_Provider {