Chapitre 12.1 — Glossaire FR / EN / code
Le problème n°1 du dev francophone : l’interface dit « Article », la doc dit « Post », le code dit
postet la tablewp_posts. Ce glossaire fait la correspondance terme FR ↔ terme EN ↔ nom dans le code. Cherchez toujours en anglais (doc, forums, code).
Contenu & structure
| FR (interface) | EN | Code / table |
|---|---|---|
| Article | Post | post (type) · wp_posts |
| Page | Page | page (type) · wp_posts |
| Média / fichier | Media / attachment | attachment · wp_posts + uploads/ |
| Type de publication personnalisé | Custom Post Type (CPT) | register_post_type() |
| Champ personnalisé / métadonnée | Custom field / meta | post_meta · wp_postmeta |
| Catégorie | Category | category · wp_terms… |
| Étiquette | Tag | post_tag |
| Taxonomie | Taxonomy | register_taxonomy() · wp_term_taxonomy |
| Terme | Term | wp_terms |
| Extrait | Excerpt | post_excerpt / the_excerpt() |
| Image mise en avant | Featured image | post_thumbnail / the_post_thumbnail() |
| Révision | Revision | revision · wp_posts |
| Réglage / option | Setting / option | get_option() · wp_options |
Utilisateurs & droits
| FR | EN | Code |
|---|---|---|
| Utilisateur | User | wp_users / wp_usermeta |
| Rôle | Role | add_role() |
| Capacité / permission | Capability | current_user_can() |
| Administrateur / Éditeur / Auteur / Contributeur / Abonné | Administrator / Editor / Author / Contributor / Subscriber | rôles natifs |
| Super Admin (réseau) | Super Admin | multisite |
Développement
| FR | EN | Code |
|---|---|---|
| Point d’accroche / crochet | Hook | add_action() / add_filter() |
| Action | Action | do_action() |
| Filtre | Filter | apply_filters() |
| La Boucle | The Loop | have_posts() / the_post() |
| Balise de modèle | Template tag | the_title(), get_permalink()… |
| Balise conditionnelle | Conditional tag | is_single(), is_page()… |
| Hiérarchie de gabarits | Template hierarchy | single.php, archive.php… |
| Thème enfant | Child theme | Template: dans style.css |
| Mise en file (assets) | Enqueue | wp_enqueue_script/style() |
| Jeton de sécurité | Nonce | wp_create_nonce() / wp_verify_nonce() |
| Assainir / échapper | Sanitize / escape | sanitize_*() / esc_*() |
| Requête préparée | Prepared statement | $wpdb->prepare() |
| Tâche planifiée | Cron event | wp_schedule_event() |
| Transitoire (cache) | Transient | get_transient() / set_transient() |
| Réécriture d’URL | Rewrite | add_rewrite_rule() |
Éditeur de blocs (Gutenberg)
| FR | EN | Code |
|---|---|---|
| Éditeur de blocs | Block editor / Gutenberg | @wordpress/block-editor |
| Bloc | Block | registerBlockType() / block.json |
| Attribut | Attribute | attributes (block.json) |
| Bloc dynamique | Dynamic block | render_callback / render.php |
| Blocs imbriqués | Inner blocks | InnerBlocks |
| Motif | Pattern | register_block_pattern() |
| Style de bloc | Block style | register_block_style() |
| Édition complète du site | Full Site Editing (FSE) | thèmes blocs · theme.json |
| Gabarit / partie de gabarit | Template / template part | templates/*.html · parts/*.html |
| Boucle de requête | Query Loop | bloc core/query |
API & headless
| FR | EN | Code |
|---|---|---|
| API REST | REST API | /wp-json/ · register_rest_route() |
| Fonction externe / route | Endpoint / route | register_rest_route() |
| Rappel de permission | Permission callback | permission_callback |
| Mot de passe d’application | Application Password | auth REST |
| Découplé / sans tête | Headless | Next.js + REST/GraphQL |
WooCommerce
| FR | EN | Code |
|---|---|---|
| Produit | Product | product · WC_Product / wc_get_product() |
| Commande | Order | WC_Order / wc_get_order() (HPOS) |
| Panier | Cart | WC()->cart / WC_Cart |
| Passerelle de paiement | Payment gateway | WC_Payment_Gateway |
| Stockage des commandes haute perf | HPOS (High-Performance Order Storage) | tables wc_orders |
| API magasin | Store API | wc/store/v1 |
Acronymes utiles
| Acronyme | Signification |
|---|---|
| CPT | Custom Post Type |
| FSE | Full Site Editing |
| HPOS | High-Performance Order Storage (WooCommerce) |
| WPCS | WordPress Coding Standards |
| PHPCS | PHP_CodeSniffer |
| HPOS | (commandes Woo en tables dédiées) |
| ISR | Incremental Static Regeneration (Next.js) |
| SSG | Static Site Generation |
| GPL | GNU General Public License |
| WSOD | White Screen Of Death (erreur fatale PHP) |
| i18n / l10n | internationalization / localization |
| A11y | accessibility |
Chapitre suivant : Cheatsheets.