Attention 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.


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.


<?php wp_unregister_GLOBALS() ?>


Does not accept any parameters.

Return Values

Does not return a value.


Change Log

Source File

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


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