Comprehensive List of WordPress Action Hooks Liste complète de crochets d'action de WordPress

For WordPress Plugin and Theme Developers by Pour WordPress plugin et le thème par les développeurs Plugin Developer Plugin Développeurs

This contains all the available action hooks (documented as well as undocumented) for WordPress plugin and theme developers. Celui-ci contient toutes les mesures crochets (documentés ainsi que sans papiers) pour WordPress plugin et le thème développeurs. All available documentation on these hooks have been updated from WordPress Codex. Toute la documentation disponible sur ces crochets ont été mises à jour de WordPress Codex.

Source file and line number information is provided to allow you to find more details about the hook. Fichier source et le numéro de ligne d'information est fourni pour vous permettre de trouver plus de détails sur le crochet. Please maximize your browser for better display. S’il vous plaît maximiser votre navigateur pour une meilleure visualisation.

Note: You may also want to refer Note: Vous voulez mai également de se référer WordPress 2.x Filters - Comprehensive List for Plugin and Theme Developers WordPress 2.x Filtres - Liste complète Plugin pour les développeurs et le thème .

No. N ° Action Source File Source de dossier Line Ligne
No. N °
Comments Commentaires
1 wp_logout wp-login.php wp-login.php 25 25
2 lost_password wp-login.php wp-login.php 38 38
3 retreive_password wp-login.php wp-login.php 100 100
4 retrieve_password wp-login.php wp-login.php 101 101
5 password_reset wp-login.php wp-login.php 137 137
6 wp_authenticate wp-login.php wp-login.php 189 189
7 wp_login wp-login.php wp-login.php 201 201
8 rss_head wp-rss.php wp-rss.php 22 22
9 rss_item wp-rss.php wp-rss.php 33 33
10 template_redirect wp-includes\template-loader.php wp-includes \ modèle-loader.php 3 3

No Non
parameter. paramètre. Executes before the determination of the template file to be used to display Exécute avant la détermination du modèle de fichier à utiliser pour l'affichage
the requested page. la page demandée. Useful for providing additional templates based on request criteria. Utile pour fournir d'autres modèles basés sur demande critères.
Example (pedagogical, not useful): Redirect all requests to the all.php template file Exemple (pédagogique, pas utile): Rediriger toutes les requêtes vers le fichier modèle all.php
in the current themes’ directory. au cours de thèmes'.

function all_on_one () { all_on_one fonction () (
include(TEMPLATEPATH include (TEMPLATEPATH
. ‘/all.php’); '/ All.php');
exit; sortie;
} )
add_action(’template_redirect’, add_action ( 'template_redirect »,
‘all_on_one’); "All_on_one ');

11 wp_meta wp-includes\template-functions-general.php wp-includes \ modèle-fonctions-general.php 59 59 No Non
parameter. paramètre. Executes in the Exécute dans le
  • Meta Méta
  • section of the included Theme’s section du inclus Thèmes
    sidebar.php’s. sidebar.php 'S. Useful for insertion of additional content in meta section. Utile pour l'insertion de contenu supplémentaire dans la méta.

    12 mce_options wp-includes\js\tinymce\tiny_mce_gzip.php wp-includes \ js \ TinyMCE \ tiny_mce_gzip.php 144 144
    13 tinymce_before_init wp-includes\js\tinymce\tiny_mce_gzip.php wp-includes \ js \ TinyMCE \ tiny_mce_gzip.php 150 150
    14 profile_update wp-includes\registration-functions.php wp-includes \ enregistrement-functions.php 76 76
    15 user_register wp-includes\registration-functions.php wp-includes \ enregistrement-functions.php 78 78
    16 private_to_published wp-includes\functions-post.php wp-includes \ fonctions-post.php 175 175 Receives Reçoit
    the post ID as a parameter. le poste ID comme un paramètre. Executes when a post is moved from private to published Exécute quand un poste est transféré du secteur privé de la publication
    status. état.
    17 edit_post wp-includes\functions-post.php wp-includes \ fonctions-post.php 178 178 Receives Reçoit
    the post ID as a parameter. le poste ID comme un paramètre. Executes every time a post is edited. Exécute chaque fois qu'un poste est publié.
    18 publish_post wp-includes\functions-post.php wp-includes \ fonctions-post.php 182 182 Receives Reçoit
    the post ID as a parameter. le poste ID comme un paramètre. Executes when a post is saved and its status is set to Exécute lorsqu'un poste est enregistré et son statut est fixé à
    "publish", regardless of its prior setting. «publier», quelle que soit sa mise en avant. NOTE: to add a hook to this Note: Pour ajouter un crochet à cette
    action in 1.2, be sure to specify a priority between 0 and 9. en 1,2 action, n'oubliez pas de spécifier une priorité entre 0 et 9. The generic_ping hook Le crochet generic_ping
    is buggy and prevents any lesser priority hooks from working. est buggé et empêche toute priorité moindre crochets de travailler.
    19 save_post wp-includes\functions-post.php wp-includes \ fonctions-post.php 206 206 Receives Reçoit
    the post ID as a parameter. le poste ID comme un paramètre. Executes when a post is saved to the database. Exécute quand un poste est enregistré sur la base de données.
    20 wp_insert_post wp-includes\functions-post.php wp-includes \ fonctions-post.php 207 207
    21 edit_attachment wp-includes\functions-post.php wp-includes \ fonctions-post.php 342 342
    22 add_attachment wp-includes\functions-post.php wp-includes \ fonctions-post.php 344 344
    23 delete_attachment wp-includes\functions-post.php wp-includes \ fonctions-post.php 380 380
    24 delete_post wp-includes\functions-post.php wp-includes \ fonctions-post.php 538 538 Receives Reçoit
    the post ID as a parameter. le poste ID comme un paramètre. Executes whenever a post is deleted. Exécute chaque fois qu'un poste est supprimé.
    25 wp_blacklist_check wp-includes\functions-post.php wp-includes \ fonctions-post.php 642 642
    26 parse_query wp-includes\classes.php wp-includes \ classes.php 86 86
    27 parse_query wp-includes\classes.php wp-includes \ classes.php 238 238
    28 pre_get_posts wp-includes\classes.php wp-includes \ classes.php 262 262
    29 loop_start wp-includes\classes.php wp-includes \ classes.php 699 699
    30 loop_end wp-includes\classes.php wp-includes \ classes.php 706 706
    31 generate_rewrite_rules wp-includes\classes.php wp-includes \ classes.php 1323 1323 No Non
    parameter. paramètre. Executes whenever the rewrite rules are recomputed. Exécute chaque fois que les règles de réécriture sont recalculés. To modify the computed Pour modifier la calculé
    rules, use the filter rewrite_rules_array instead. règles, utilisez le filtre rewrite_rules_array lieu.
    32 comment_post wp-includes\comment-functions.php wp-includes \ comment-functions.php 52 52 Receives Reçoit
    the comment ID as a parameter. le commentaire ID comme un paramètre. Executes when a comment is added through wp-comments.php. Exécute quand un commentaire est ajouté par wp-comments.php.
    33 comment_flood_trigger wp-includes\comment-functions.php wp-includes \ comment-functions.php 126 126
    34 edit_comment wp-includes\comment-functions.php wp-includes \ comment-functions.php 191 191 Receives Reçoit
    the comment ID as a parameter. le commentaire ID comme un paramètre. Executes whenever a comment is edited. Exécute chaque fois qu'un commentaire est édité.
    35 delete_comment wp-includes\comment-functions.php wp-includes \ comment-functions.php 198 198 Receives Reçoit
    the comment ID as a parameter. le commentaire ID comme un paramètre. Executes when a comment is deleted. Exécute quand un commentaire est supprimé.
    36 wp_set_comment_status wp-includes\comment-functions.php wp-includes \ comment-functions.php 209 209 Receives Reçoit
    the comment ID as a parameter. le commentaire ID comme un paramètre. Executes when the comment status changes. Exécute le commentaire lorsque les changements de statut.
    37 pre_ping wp-includes\comment-functions.php wp-includes \ comment-functions.php 635 635
    38 wp_set_comment_status wp-includes\comment-functions.php wp-includes \ comment-functions.php 794 794
    39 wp_head wp-includes\functions.php wp-includes \ functions.php 1432 1432 No Non
    parameter. Template tag. Executes in the paramètre. balise de modèle. Exécute dans le section. . Useful for insertion Utile pour l'insertion
    of additional content like metatags or javascript. du contenu supplémentaire comme métabalises ou le javascript.
    40 wp_footer wp-includes\functions.php wp-includes \ functions.php 1436 1436 No Non
    parameter. Template tag. Executes just before the end of the <body> tag. paramètre. balise de modèle. Exécute juste avant la fin de la balise <body>.
    Useful for insertion of additional content or statistics code like Google Analytics. Utile pour l'insertion de contenu supplémentaire ou des statistiques code comme Google Analytics.
    41 comment_form wp-content\themes\classic\comments-popup.php wp-content \ thèmes \ classique \ comments-popup.php 86 86 Receives Reçoit
    the comment’s post ID as a parameter. le commentaire de l'après ID comme un paramètre. Template tag. Balise de modèle. Executes after displaying the Exécute après avoir affiché la
    comment form for a post that allows comments. formulaire de commentaire pour un poste qui permet des commentaires.
    42 comment_form wp-content\themes\classic\comments.php wp-content \ thèmes \ classique \ comments.php 67 67
    43 comment_form wp-content\themes\default\comments-popup.php wp-content \ thèmes \ default \ comments-popup.php 86 86
    44 comment_form wp-content\themes\default\comments.php wp-content \ thèmes \ default \ comments.php 98 98
    45 rdf_ns wp-rdf.php WP-rdf.php 21 21
    46 rdf_header wp-rdf.php WP-rdf.php 32 32
    47 rdf_item wp-rdf.php WP-rdf.php 54 54
    48 comment_id_not_found wp-comments-post.php wp-comments-post.php 11 11 Receives Reçoit
    the comment’s post ID as a parameter. le commentaire de l'après ID comme un paramètre. Executes when attempting to display the comment Exécute lorsque vous essayez d'afficher le commentaire
    form for a post that does not exist. forme pour un poste qui n'existe pas.
    49 comment_closed wp-comments-post.php wp-comments-post.php 14 14 Receives Reçoit
    the comment’s post ID as a parameter. le commentaire de l'après ID comme un paramètre. Executes when attempting to display the comment Exécute lorsque vous essayez d'afficher le commentaire
    form for a post that has closed comments. forme pour un poste qui a fermé les commentaires.
    50 comment_on_draft wp-comments-post.php wp-comments-post.php 17 17
    51 pingback_post xmlrpc.php xmlrpc.php 1236 1236 Receives Reçoit
    the comment ID as a parameter. le commentaire ID comme un paramètre. Executes when a comment is added via XMLRPC. Exécute quand un commentaire est ajouté par XMLRPC.
    52 publish_phone wp-mail.php WP-Mail.php 146 146 Receives Reçoit
    the post ID as a parameter. le poste ID comme un paramètre. Executes when a post is added via wp-mail.php. Exécute lorsqu'un poste est ajouté par wp-Mail.php.
    53 rss2_ns wp-rss2.php wp-rss2.php 19 19
    54 rss2_head wp-rss2.php wp-rss2.php 29 29
    55 rss2_item wp-rss2.php wp-rss2.php 52 52
    56 edit_form_advanced wp-admin\edit-form-advanced.php wp-admin \ edit-form-advanced.php 216 216 No Non
    parameter. paramètre. Executes during the display of the admin panel’s advanced editing page, Exécute lors de l'affichage du panneau d'administration avancées d'édition de page,
    just before the juste avant le
    is closed that contains the post content textarea. est fermée qui contient le poste de contenu texte. Useful Utiles
    for inserting additional input fields into the advanced editing form. pour insérer d'autres champs de saisie dans le formulaire avancées d'édition.
    57 admin_menu wp-admin\menu.php wp-admin \ menu.php 57 57 No Non
    parameter. paramètre. Executes after the basic admin panel menu structure is in place. Exécute après le panneau d'administration de base menu structure est en place. Useful Utiles
    for adding additional menus to the admin panel. pour ajouter des menus pour le panneau d'administration.
    58 admin_head wp-admin\admin-header.php wp-admin \ admin-header.php 312 312 No Non
    parameter. paramètre. Executes in the Exécute dans le section of the admin panel. section du panneau d'administration. Useful for insertion Utile pour l'insertion
    of additional content. de contenu supplémentaire.
    59 personal_options_update wp-admin\profile-update.php wp-admin \ profil update.php 23 23
    60 activate_ wp-admin\plugins.php wp-admin \ plugins.php 14 14
    61 deactivate_ wp-admin\plugins.php wp-admin \ plugins.php 21 21
    62 manage_posts_custom_column wp-admin\edit.php wp-admin \ edit.php 218 218
    63 delete_comment wp-admin\post.php wp-admin \ post.php 232 232
    64 check_passwords wp-admin\admin-functions.php wp-admin \ admin-functions.php 388 388
    65 check_admin_referer wp-admin\admin-functions.php wp-admin \ admin-functions.php 971 971
    66 switch_theme wp-admin\admin-functions.php wp-admin \ admin-functions.php 1126 1126
    67 switch_theme wp-admin\admin-functions.php wp-admin \ admin-functions.php 1133 1133
    68 edit_page_form wp-admin\edit-page-form.php wp-admin \ edit-page-form.php 214 214 No Non
    parameter. paramètre. Executes inside the S'exécute dans la
    tag on the page editing form. tag sur la page d'édition. Useful for Utile pour
    inserting additional input fields in the page editing form. l'insertion d'autres champs de saisie dans la page d'édition.
    69 show_user_profile wp-admin\profile.php wp-admin \ profile.php 105 105
    70 profile_personal_options wp-admin\profile.php wp-admin \ profile.php 114 114
    71 edit_user_profile wp-admin\user-edit.php wp-admin \ user-edit.php 168 168
    72 activity_box_end wp-admin\index.php wp-admin \ index.php 113 113
    73 admin_footer wp-admin\bookmarklet.php wp-admin \ bookmarklet.php 101 101 No Non
    parameter. paramètre. Executes at the end of the admin panel inside the body tag. Exécute à la fin du panneau d'administration dans la balise body. Useful for Utile pour
    insertion of additional content. insertion de contenu supplémentaire.
    74 edit_category wp-admin\admin-db.php wp-admin \ admin-Db.php 123 123
    75 create_category wp-admin\admin-db.php wp-admin \ admin-Db.php 126 126
    76 add_category wp-admin\admin-db.php wp-admin \ admin-Db.php 127 127
    77 delete_category wp-admin\admin-db.php wp-admin \ admin-Db.php 175 175
    78 delete_user wp-admin\admin-db.php wp-admin \ admin-Db.php 238 238
    79 edit_link wp-admin\admin-db.php wp-admin \ admin-Db.php 297 297
    80 add_link wp-admin\admin-db.php wp-admin \ admin-Db.php 299 299
    81 delete_link wp-admin\admin-db.php wp-admin \ admin-Db.php 323 323
    82 simple_edit_form wp-admin\edit-form.php wp-admin \ edit-form.php 70 70 No Non
    parameter. paramètre. Executes during the display of the admin panel’s simple editing page, just Exécute lors de l'affichage du panneau d'administration simple page d'édition,
    before the avant le
    is closed that contains the post content textarea. est fermée qui contient le poste de contenu texte. Useful for Utile pour
    inserting additional input fields into the simple editing form. l'insertion d'autres champs de saisie dans le formulaire d'édition simples.
    83 admin_footer wp-admin\admin-footer.php wp-admin \ admin-footer.php 9 9
    84 switch_theme wp-admin\themes.php wp-admin \ themes.php 14 14 Receives Reçoit
    the name of the current theme as a parameter. le nom du thème actuel comme un paramètre. Executes when the blog theme is changed. Exécute lorsque le blog thème est changé.
    85 trackback_post wp-trackback.php wp-trackback.php 95 95 Receives Reçoit
    the comment ID as a parameter. le commentaire ID comme un paramètre. Executes when a comment is added via trackback.php. Exécute quand un commentaire est ajouté par trackback.php.
    86 atom_ns wp-atom.php wp-atom.php 17 17
    87 atom_head wp-atom.php wp-atom.php 25 25
    88 atom_entry wp-atom.php wp-atom.php 42 42
    89 core_files_loaded wp-settings.php wp-settings.php 164 164
    90 plugins_loaded wp-settings.php wp-settings.php 187 187
    91 shutdown arrêt wp-settings.php wp-settings.php 222 222 No Non
    parameter. paramètre. Executes when the page output is complete. Exécute lorsque la page de sortie est terminée.
    92 init wp-settings.php wp-settings.php 227 227 Executes Exécute
    after WordPress has finished loading but before any headers are sent. après WordPress a fini de charger, mais avant tout-têtes sont envoyés. Useful for intercepting Utile pour intercepter
    $_GET or $_POST triggers. $ _GET Ou $ _POST déclencheurs.