wp_functionality_constants

The timeline below displays how wordpress function wp_functionality_constants has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Defines functionality-related WordPress constants.
 *
 * @since 3.0.0
 */
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);
    }
}

WordPress Version: 5.1

/**
 * Defines functionality related WordPress constants
 *
 * @since 3.0.0
 */
function wp_functionality_constants()
{
    /**
     * @since 2.5.0
     */
    if (!defined('AUTOSAVE_INTERVAL')) {
        define('AUTOSAVE_INTERVAL', 60);
    }
    /**
     * @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', 60);
        // In seconds
    }
}

WordPress Version: 3.7

/**
 * Defines functionality related WordPress constants
 *
 * @since 3.0.0
 */
function wp_functionality_constants()
{
    /**
     * @since 2.5.0
     */
    if (!defined('AUTOSAVE_INTERVAL')) {
        define('AUTOSAVE_INTERVAL', 60);
    }
    /**
     * @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', 60);
    }
    // In seconds
}