2

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.

1 Answer 1

3

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

2
  • 1
    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. Dec 8, 2011 at 16:24
  • @MannyFleurmond right. I want to generate custom errors and CHMOD 777 just an example :)
    – Eray
    Dec 8, 2011 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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