pre_post_insert, $data

pre_post_insert, $data

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('pre_post_insert, $data') is found 1 times:

  • /wp-includes/post.php line 4932
    		 * @since 6.9.0
    		 *
    		 * @param array $data Array of unslashed post data.
    		 */
    		do_action( 'pre_post_insert', $data );
    
    		if ( false === $wpdb->insert( $wpdb->posts, $data ) ) {
    			if ( $wp_error ) {
    				if ( 'attachment' === $post_type ) {
    					$message = __( 'Could not insert attachment into the database.' );
    				} else {