How to check and set memory limit for WordPress