Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

WordPress hook directory
edit_post_{$post->post_type}

Important warning about variable hooks

Some hooks have variables in their names. For example, pre_${taxonomy}_$field and admin_head- both have variable names. In general, any hook that ends (or begins) with - or _, or contains a $, has a variable name. Since the syntax with which these variables are defined may change from version to version, this page may think that a hook is deprecated (or new) even if it is not. You can usually catch this sort of thing by comparing this hook to the list of "related hooks" below.

WordPress version history for edit_post_{$post->post_type}

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

Version File Line Type
5.1 wp-includes/class-wp-customize-manager.php 3010 View in context action
5.1 wp-includes/comment.php 2494 View in context action
5.1 wp-includes/post.php 3902 View in context action
5.1 wp-includes/post.php 4060 View in context action
5.2 wp-includes/class-wp-customize-manager.php 3010 View in context action
5.2 wp-includes/comment.php 2517 View in context action
5.2 wp-includes/post.php 3902 View in context action
5.2 wp-includes/post.php 4060 View in context action
5.3 wp-includes/class-wp-customize-manager.php 3047 View in context action
5.3 wp-includes/comment.php 2543 View in context action
5.3 wp-includes/post.php 4070 View in context action
5.3 wp-includes/post.php 4229 View in context action
5.4 wp-includes/class-wp-customize-manager.php 3051 View in context action
5.4 wp-includes/comment.php 2549 View in context action
5.4 wp-includes/post.php 4095 View in context action
5.4 wp-includes/post.php 4268 View in context action
5.5 wp-includes/class-wp-customize-manager.php 3092 View in context action
5.5 wp-includes/comment.php 2694 View in context action
5.5 wp-includes/post.php 4211 View in context action
5.5 wp-includes/post.php 4387 View in context action
5.6 wp-includes/class-wp-customize-manager.php 3094 View in context action
5.6 wp-includes/comment.php 2697 View in context action
5.6 wp-includes/post.php 4260 View in context action
5.6 wp-includes/post.php 4474 View in context action
5.7 wp-includes/class-wp-customize-manager.php 3094 View in context action
5.7 wp-includes/comment.php 2699 View in context action
5.7 wp-includes/post.php 4335 View in context action
5.7 wp-includes/post.php 4549 View in context action
5.8 wp-includes/class-wp-customize-manager.php 3094 View in context action
5.8 wp-includes/comment.php 2704 View in context action
5.8 wp-includes/post.php 4419 View in context action
5.8 wp-includes/post.php 4633 View in context action
5.9 wp-includes/class-wp-customize-manager.php 3094 View in context action
5.9 wp-includes/comment.php 2724 View in context action
5.9 wp-includes/post.php 4632 View in context action
5.9 wp-includes/post.php 4851 View in context action
6.0 wp-includes/class-wp-customize-manager.php 3098 View in context action
6.0 wp-includes/comment.php 2702 View in context action
6.0 wp-includes/post.php 4619 View in context action
6.0 wp-includes/post.php 4838 View in context action
6.1 wp-includes/class-wp-customize-manager.php 3099 View in context action
6.1 wp-includes/comment.php 2769 View in context action
6.1 wp-includes/post.php 4663 View in context action
6.1 wp-includes/post.php 4882 View in context action
6.2 wp-includes/class-wp-customize-manager.php 3099 View in context action
6.2 wp-includes/comment.php 2777 View in context action
6.2 wp-includes/post.php 4661 View in context action
6.2 wp-includes/post.php 4880 View in context action

Related Hooks

We find related hooks using word stems. edit_post_{$post->post_type} has 5 significant word stem(s): edit, post, post, post, type. Note that some of the hooks below may not appear in all versions of WP.