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[@] Your question and answer will appear on and help other developers.

Related Questions & Answers