WordPress hook directory
edit_post

Description

Runs when a post or page is updated/edited, including when a comment is added or updated (which causes the comment count for the post to update). Action function arguments: post or page ID.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for edit_post

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
1.2.1 wp-admin/post.php 840 View in context action
1.5.2 xmlrpc.php 677 View in context action
1.5.2 wp-admin/post.php 432 View in context action
1.5.2 wp-includes/functions-post.php 142 View in context action
2.0 wp-includes/functions-post.php 178 View in context action
2.0.11 wp-includes/functions-post.php 179 View in context action
2.1 wp-includes/comment.php 498 View in context action
2.1 wp-includes/post.php 668 View in context action
2.2 wp-includes/comment.php 499 View in context action
2.2 wp-includes/post.php 668 View in context action
2.3 wp-includes/comment.php 519 View in context action
2.3 wp-includes/post.php 767 View in context action
2.3 wp-includes/post.php 832 View in context action
2.5 wp-includes/comment.php 891 View in context action
2.5 wp-includes/post.php 1325 View in context action
2.5 wp-includes/post.php 1420 View in context action
2.6 wp-includes/comment.php 946 View in context action
2.6 wp-includes/post.php 1410 View in context action
2.6 wp-includes/post.php 1505 View in context action
2.7 wp-includes/comment.php 1217 View in context action
2.7 wp-includes/post.php 1526 View in context action
2.7 wp-includes/post.php 1616 View in context action
2.8 wp-includes/comment.php 1223 View in context action
2.8 wp-includes/post.php 1598 View in context action
2.8 wp-includes/post.php 1691 View in context action
2.9 wp-includes/comment.php 1441 View in context action
2.9 wp-includes/post.php 1809 View in context action
2.9 wp-includes/post.php 1902 View in context action
3.0 wp-includes/comment.php 1504 View in context action
3.0 wp-includes/post.php 2378 View in context action
3.0 wp-includes/post.php 2474 View in context action
3.1 wp-includes/comment.php 1566 View in context action
3.1 wp-includes/post.php 2618 View in context action
3.1 wp-includes/post.php 2714 View in context action
3.2 wp-includes/comment.php 1577 View in context action
3.2 wp-includes/post.php 2652 View in context action
3.2 wp-includes/post.php 2748 View in context action
3.3 wp-includes/comment.php 1577 View in context action
3.3 wp-includes/post.php 2651 View in context action
3.3 wp-includes/post.php 2741 View in context action
3.4 wp-includes/comment.php 1585 View in context action
3.4 wp-includes/post.php 2693 View in context action
3.4 wp-includes/post.php 2783 View in context action
3.5 wp-includes/comment.php 1624 View in context action
3.5 wp-includes/post.php 2945 View in context action
3.6 wp-includes/comment.php 1621 View in context action
3.6 wp-includes/post.php 2877 View in context action
3.6 wp-includes/post.php 2973 View in context action
3.7 wp-includes/comment.php 1638 View in context action
3.7 wp-includes/post.php 2948 View in context action
3.7 wp-includes/post.php 3045 View in context action
3.8 wp-includes/comment.php 1988 View in context action
3.8 wp-includes/post.php 2955 View in context action
3.8 wp-includes/post.php 3052 View in context action
3.9 wp-includes/comment.php 1969 View in context action
3.9 wp-includes/post.php 3210 View in context action
3.9 wp-includes/post.php 3349 View in context action
4.0 wp-includes/comment.php 2074 View in context action
4.0 wp-includes/post.php 3466 View in context action
4.0 wp-includes/post.php 3607 View in context action
4.1 wp-includes/comment.php 2359 View in context action
4.1 wp-includes/post.php 3461 View in context action
4.1 wp-includes/post.php 3602 View in context action
4.2 wp-includes/comment.php 2578 View in context action
4.2 wp-includes/post.php 3503 View in context action
4.2 wp-includes/post.php 3644 View in context action
4.3 wp-includes/comment.php 2679 View in context action
4.3 wp-includes/post.php 3553 View in context action
4.3 wp-includes/post.php 3694 View in context action
4.4 wp-includes/comment.php 2073 View in context action
4.4 wp-includes/post.php 3347 View in context action
4.4 wp-includes/post.php 3488 View in context action
4.5 wp-includes/comment.php 2174 View in context action
4.5 wp-includes/post.php 3491 View in context action
4.5 wp-includes/post.php 3632 View in context action
4.6 wp-includes/comment.php 2179 View in context action
4.6 wp-includes/post.php 3371 View in context action
4.6 wp-includes/post.php 3512 View in context action
4.7 wp-includes/comment.php 2356 View in context action
4.7 wp-includes/post.php 3467 View in context action
4.7 wp-includes/post.php 3608 View in context action
4.7 wp-includes/theme.php 2888 View in context action
4.8 wp-includes/comment.php 2351 View in context action
4.8 wp-includes/post.php 3472 View in context action
4.8 wp-includes/post.php 3613 View in context action
4.8 wp-includes/theme.php 2909 View in context action
4.9 wp-includes/class-wp-customize-manager.php 2961 View in context action
4.9 wp-includes/comment.php 2393 View in context action
4.9 wp-includes/post.php 3543 View in context action
4.9 wp-includes/post.php 3684 View in context action
5.0 wp-includes/class-wp-customize-manager.php 2968 View in context action
5.0 wp-includes/comment.php 2395 View in context action
5.0 wp-includes/post.php 3709 View in context action
5.0 wp-includes/post.php 3850 View in context action
5.1 wp-includes/class-wp-customize-manager.php 3013 View in context action
5.1 wp-includes/comment.php 2497 View in context action
5.1 wp-includes/post.php 3912 View in context action
5.1 wp-includes/post.php 4063 View in context action

Related Hooks

We find related hooks using word stems. edit_post has 2 significant word stem(s): edit, post. Note that some of the hooks below may not appear in all versions of WP.