Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 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
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. –  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

 
discard

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.