WP_Importer::stop_the_insanity

Advertisement

Summery Summery

Resets global variables that grow out of control during imports.

Syntax Syntax

WP_Importer::stop_the_insanity()

Source Source

File: wp-admin/includes/class-wp-importer.php

	public function stop_the_insanity() {
		global $wpdb, $wp_actions;
		// Or define( 'WP_IMPORTING', true );
		$wpdb->queries = array();
		// Reset $wp_actions to keep it from growing out of control.
		$wp_actions = array();
	}

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.