WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp unregister GLOBALS


This function's access is marked as private. That means it is not intended for use by plugin and theme developers, but only in other core functions. It is listed here for completeness. Use any of these functions instead.

Description

If register_globals is on, turn it off. Function will not unset values for $_GET, $_POST, $_COOKIE, $_REQUEST, $_SERVER, $_ENV, $_FILES, and $table_prefix. It is called once in core, in wp-settings.php

Note: this will also disable PHP sessions if register_globals was on.

Usage

<?php wp_unregister_GLOBALS() ?>

Parameters

Does not accept any parameters.

Return Values

Does not return a value.

Notes

Change Log

Source File

wp_unregister_GLOBALS() is located in wp-includes/load.php.

Related

See also index of Function Reference and index of Template Tags.
This page is marked as incomplete. You can help Codex by expanding it.