Title: wp_unregister_GLOBALS
Published: April 25, 2014
Last modified: May 20, 2026

---

# wp_unregister_GLOBALS()

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/wp_unregister_globals/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_unregister_globals/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_unregister_globals/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_unregister_globals/?output_format=md#wp--skip-link--target)

This function has been deprecated since 5.5.0.

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Turn register globals off.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_unregister_globals/?output_format=md#source)󠁿

    ```php
    function wp_unregister_GLOBALS() {
    	// register_globals was deprecated in PHP 5.3 and removed entirely in PHP 5.4.
    	_deprecated_function( __FUNCTION__, '5.5.0' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/deprecated.php#L4031)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L4031-L4034)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_unregister_globals/?output_format=md#related)󠁿

| Uses | Description | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_unregister_globals/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Deprecated.  | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_unregister_globals%2F)
before being able to contribute a note or feedback.