Web & Software Developer

Archive for “WordPress Code Snippets”

WordPress tutorials, help, and code snippets to help you design and customize your own WordPress site.

Run Code Only Once in WordPress

You may have a function or some code that you only want to run one time on your WordPress site. You may notice that functions hooked on to admin_init can be fired twice. Here is quick way to run your code only once. This will guarantee that it runs one, and only one, time. Mandatory … Read more →