wp_update_lock_down()
No Hooks.
Return
null
. Nothing (null).
Usage
wp_update_lock_down();
wp_update_lock_down() wp update lock down code WPSCache 1.12.4
function wp_update_lock_down() { global $cache_path, $wp_cache_config_file, $valid_nonce; if ( isset( $_POST[ 'wp_lock_down' ] ) && $valid_nonce ) { $wp_lock_down = $_POST[ 'wp_lock_down' ] == '1' ? '1' : '0'; wp_cache_replace_line( '^.*WPLOCKDOWN', "if ( ! defined( 'WPLOCKDOWN' ) ) define( 'WPLOCKDOWN', '$wp_lock_down' );", $wp_cache_config_file ); if ( false == defined( 'WPLOCKDOWN' ) ) define( 'WPLOCKDOWN', $wp_lock_down ); if ( $wp_lock_down == '0' && function_exists( 'prune_super_cache' ) ) prune_super_cache( $cache_path, true ); // clear the cache after lockdown return $wp_lock_down; } if ( defined( 'WPLOCKDOWN' ) ) return constant( 'WPLOCKDOWN' ); else return 0; }