wpsc_enable_wp_config_edit

wpsc_enable_wp_config_edit

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-super-cache.1.9.4

apply_filters('wpsc_enable_wp_config_edit') is found 2 times:

  • /wp-cache.php line 2183
    	}
    
    	$line = 'define( \'WPCACHEHOME\', \'' . __DIR__ . '/\' );';
    
    	if ( ! apply_filters( 'wpsc_enable_wp_config_edit', true ) ) {
    		echo '<div class="notice notice-error"><h4>' . __( 'Warning', 'wp-super-cache' ) . "! " . sprintf( __( 'Not allowed to edit %s per configuration.', 'wp-super-cache' ), $global_config_file ) . "</h4></div>";
    		return false;
    	}
    
    	if (
    		! strpos( file_get_contents( $global_config_file ), "WPCACHEHOME" ) ||
    
  • /wp-cache.php line 3427
    	} else {
    		$global_config_file = dirname(ABSPATH) . '/wp-config.php';
    	}
    
    	if ( apply_filters( 'wpsc_enable_wp_config_edit', true ) ) {
    		$line = 'define(\'WP_CACHE\', true);';
    		if (
    			strpos( file_get_contents( $global_config_file ), $line ) &&
    			(
    				! is_writeable_ACLSafe( $global_config_file ) ||
    				! wp_cache_replace_line( 'define*\(*\'WP_CACHE\'', '', $global_config_file )