WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to give errors like this, while activating my plugin.

enter image description here

Which hooks should i use ? Can you share simple examples ?

In shortly,when user activate my plugin, is a directory's CHMOD isn't 777 , i'll warn it and stop activation.

share|improve this question
up vote 3 down vote accepted

Check out : WP Error

And this link covers how the plugin activation error works: http://www.squarepenguin.com/wordpress/?p=6

And I don't see any reason why you should ever chmod a directory to 777

share|improve this answer
I think he wants to recreate the warning messages that appear on top of the admin screen. All WP_Error does is give you a way of storing errors in an object. – Manny Fleurmond Dec 8 '11 at 16:24
@MannyFleurmond right. I want to generate custom errors and CHMOD 777 just an example :) – Eray Dec 8 '11 at 16:25
Thanks, you're right, I added the info. – Wyck Dec 8 '11 at 16:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.