Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/post.php | apply_filters | 408 | /** * Updates an existing post with values provided in `$_POST`. * * If post data is passed as an argument, it is treated as an array of data * keyed appropriately for turning into a post object. * * If post data is not passed, the `$_POST` global variable is used instead. * * @since 1.5.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param array|null $post_data Optional. The array of post data to process. * Defaults to the `$_POST` superglobal. * @return int Post ID. */ |
wp-admin/includes/ajax-actions.php | apply_filters | 3186 | /** * Ajax handler for saving backward compatible attachment attributes. * * @since 3.5.0 */ |
wp-admin/includes/media.php | apply_filters | 783 | /** * Filters the attachment fields to be saved. * * @since 2.5.0 * * @see wp_get_attachment_metadata() * * @param array $post An array of post data. * @param array $attachment An array of attachment metadata. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $post | An array of post data. |
array | $attachment | An array of attachment metadata. |