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.6

do_action('pre_post_update') is found 1 times:

  • /wp-includes/post.php line 4607
    		 *
    		 * @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: