Web Dev Notes

Blog about web development by Robert Dawson

To disallow comments in WordPress

Here is how to disallow comments in WordPress. Please note that this applies to version WordPress 3.6. 

To disallow comments for new posts:

  1. In the admin, go to the Discussion section under Settings on the left.
  2. Uncheck the "Allow people to post comments on new articles" option.

To disallow comments for existing posts:

  1. Go to the Posts section.
  2. Check the checkbox to the left of the Title column to select all posts.
  3. Click the Bulk Actions menu above this checkbox.
  4. Select the Edit option and click Apply.
  5. Select the "Do not allow" option in the Comments drop-down menu.


How to use phpDocumentor on WordPress (on Mac)

Here are the steps it took for me to get phpDocumentor to create documentation for a WordPress installation.


  1. Open phpDocumentor.ini*
  2. Uncomment the line (line 25 for me) starting with "memory_limit"
  3. Set memory_limit to "2048M"**
  4. Open Terminal and go to the directory above the one your wordpress installation
  5. Use phpdoc (takes a few minutes)


phpdoc -o HTML:frames:earthli -d wordpress -t wordpress/docs

* I'm using MAMP and my directory is /Applications/MAMP/htdocs/phpdoc/.
** Probably overkill; consider available RAM. For me, 1024M wasn't enough. I kept getting this error:

phpdoc FAILED: Bad environment variable $PHP (set to "/usr/bin/php")