Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/post.php | apply_filters | 2797 | /** * Filters the value of a specific post field to edit. * * The dynamic portion of the hook name, `$field_no_prefix`, refers to * the post field name. * * @since 2.3.0 * * @param mixed $value Value of the post field. * @param int $post_id Post ID. */ |
wp-includes/post.php | do_action | 4663 | /** * Fires once an existing post has been updated. * * The dynamic portion of the hook name, `$post->post_type`, refers to * the post type slug. * * Possible hook names include: * * - `edit_post_post` * - `edit_post_page` * * @since 5.1.0 * * @param int $post_ID Post ID. * @param WP_Post $post Post object. */ |
wp-includes/post.php | do_action | 4882 | /** * Publishes a post by transitioning the post status. * * @since 2.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int|WP_Post $post Post ID or post object. */ |
wp-includes/class-wp-customize-manager.php | do_action | 3099 | /** * Trashes or deletes a changeset post. * * The following re-formulates the logic from `wp_trash_post()` as done in * `wp_publish_post()`. The reason for bypassing `wp_trash_post()` is that it * will mutate the the `post_content` and the `post_name` when they should be * untouched. * * @since 4.9.0 * * @see wp_trash_post() * @global wpdb $wpdb WordPress database abstraction object. * * @param int|WP_Post $post The changeset post. * @return mixed A WP_Post object for the trashed post or an empty value on failure. */ |
wp-includes/comment.php | do_action | 2769 | /** * Fires immediately after a post's comment count is updated in the database. * * @since 2.3.0 * * @param int $post_id Post ID. * @param int $new The new comment count. * @param int $old The old comment count. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
mixed | $value | Value of the post field. |
int | $post_id | Post ID. |
mixed | $value | Value of the post field. |
int | $post_id | Post ID. |
mixed | $value | Value of the post field. |
int | $post_id | Post ID. |