Hot to check and set memory limit for WordPress