Title: wp_functionality_constants
Published: April 25, 2014
Last modified: February 24, 2026

---

# wp_functionality_constants()

## In this article

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

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

Defines functionality-related WordPress constants.

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

    ```php
    function wp_functionality_constants() {
    	/**
    	 * @since 2.5.0
    	 */
    	if ( ! defined( 'AUTOSAVE_INTERVAL' ) ) {
    		define( 'AUTOSAVE_INTERVAL', MINUTE_IN_SECONDS );
    	}

    	/**
    	 * @since 2.9.0
    	 */
    	if ( ! defined( 'EMPTY_TRASH_DAYS' ) ) {
    		define( 'EMPTY_TRASH_DAYS', 30 );
    	}

    	if ( ! defined( 'WP_POST_REVISIONS' ) ) {
    		define( 'WP_POST_REVISIONS', true );
    	}

    	/**
    	 * @since 3.3.0
    	 */
    	if ( ! defined( 'WP_CRON_LOCK_TIMEOUT' ) ) {
    		define( 'WP_CRON_LOCK_TIMEOUT', MINUTE_IN_SECONDS );
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/default-constants.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/default-constants.php#L376)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/default-constants.php#L376-L401)

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

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

## User Contributed Notes

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