pre_post_insert

pre_post_insert

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.9

do_action('pre_post_insert') is found 1 times:

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