From the WJ biography:
“Many philosophers seem to have felt James was saying a person could believe, and call true, anything he or she felt convenient. Charles Peirce had an elegant answer ‘for people who say that pragmatism means believing anything one pleases. If one could believe what one pleased that would be true. But the fact is one cannot.’”