WP_Importer::stop_the_insanity
Resets global variables that grow out of control during imports.
Метод класса: WP_Importer{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Importer = new WP_Importer(); $WP_Importer->stop_the_insanity();
Заметки
- Global. wpdb.
$wpdbWordPress database abstraction object. - Global. int[].
$wp_actionsStores the number of times each action was triggered.
Список изменений
| С версии 3.0.0 | Введена. |
Код WP_Importer::stop_the_insanity() WP Importer::stop the insanity WP 7.0
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();
}