関数 wp_functionality_constants()
各種関数の為の定数の定義
定義ファイル :
/blog/wp-includes/default-constants.php
wp_functionality_constants()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /** * 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 } |