wp_functionality_constants

Defines functionality related WordPress constants.

Description

wp_functionality_constants(); 

Usage

  1. if ( !function_exists( 'wp_functionality_constants' ) ) { 
  2. require_once ABSPATH . WPINC . '/default-constants.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_functionality_constants(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/default-constants.php  
  1. function wp_functionality_constants() { 
  2. /** 
  3. * @since 2.5.0 
  4. */ 
  5. if ( !defined( 'AUTOSAVE_INTERVAL' ) ) 
  6. define( 'AUTOSAVE_INTERVAL', 60 ); 
  7.  
  8. /** 
  9. * @since 2.9.0 
  10. */ 
  11. if ( !defined( 'EMPTY_TRASH_DAYS' ) ) 
  12. define( 'EMPTY_TRASH_DAYS', 30 ); 
  13.  
  14. if ( !defined('WP_POST_REVISIONS') ) 
  15. define('WP_POST_REVISIONS', true); 
  16.  
  17. /** 
  18. * @since 3.3.0 
  19. */ 
  20. if ( !defined( 'WP_CRON_LOCK_TIMEOUT' ) ) 
  21. define('WP_CRON_LOCK_TIMEOUT', 60); // In seconds