add_role() run only once

Posted by Prem Tiwari | Updated on

add_role() run only once. As for best practice run once, if in a plugin you should use register_activation_hook and for any thing else i use a simple custom made conditional function:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers