Afficher l’extension dans l’administration Administration

Pour afficher les informations liées au thème, lors de la création d’un thème avancé (voir le chapitre Créer un thème et des fonctionnalités avancés), vous avez utilisé un commentaire en en-tête du fichier style.css, reconnu directement par WordPress. Pour les extensions, c’est le même principe, mais cette fois-ci dans le fichier PHP.

Ajoutez donc un commentaire d’en-tête dans le fichier mybreadcrumb.php.

Le commentaire est le suivant :

<?php
/*
Plugin Name: My breadcrumb 
Description: Fil d'Ariane pour les articles et les pages 
Version: 1.0 
License: GPLv2 
 
This program is free software; you can redistribute it and/or 
modify it under the terms of the GNU General Public License 
as published by the Free Software Foundation; either version 2 
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
GNU General Public License for more details. 
 
You should have received a copy of the GNU General Public License 
along with this program; if not, write to the Free Software 
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
 
Copyright {année} {mon_nom} (email : {mon_email}) 
*/
?> 

Il se compose...

couv_EI45WOR.png

Découvrez 

le livre :

Aussi inclus dans nos :

Précédent
Préparer les éléments
Suivant
Créer le code PHP de base