pre_post_update

pre_post_update

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('pre_post_update') is found 1 times:

  • /wp-includes/post.php line 4776
    4772
    4773
    4774
    4775
    4776
    4777
    4778
    4779
    4780
    4781
    4782
    *
     * @param int   $post_id Post ID.
     * @param array $data    Array of unslashed post data.
     */
    do_action( 'pre_post_update', $post_id, $data );
     
    if ( false === $wpdb->update( $wpdb->posts, $data, $where ) ) {
        if ( $wp_error ) {
            if ( 'attachment' === $post_type ) {
                $message = __( 'Could not update attachment in the database.' );
            } else {

See this hook used in plugins: