Skip to content

Instantly share code, notes, and snippets.

@NicolasLRD
NicolasLRD / functions.php
Created April 3, 2019 13:35
Wordpress Widget : List pages of parent page
<?php
function template_register_widget() {
register_widget( 'my_widget' );
}
add_action( 'widgets_init', 'template_register_widget' );
class my_widget extends WP_Widget {
function __construct() {
@NicolasLRD
NicolasLRD / shortcode-pays
Created March 30, 2020 11:40
Shortcode WP Contact Form 7 with french list of Countries
<?php
/*
Shortcode incluant la liste des pays du monde en français pour le plugin Wordpress WPCF7
Modifications:
- classement par ordre alphabétique
- "France" en première position