You can replace all-purpose flour with whole wheat flour; however, not in its entirety. Use a 50-50 ratio using both flours equally. Replacing the entire amount may result in a too-dense cake.