Tag Info

Hot answers tagged

3

I would be careful doing this, because you are assuming all your database modifications will only happen within the admin backend, but that might not always be the case. The wp-cron comes to mind, but there are also some plugins that use front-end writes. So you might get nasty sync problems with your two databases, using this method. There are many things ...


1

It's too early to use this WP built-in function. You can use it in some plugin or theme files, but not when WP enviroment is still loading. As I am not really sure if your intention is really correct, you have to use some other way (with PHP native functions) to distinct between front-end and administration. For example something like this: if( ...



Only top voted, non community-wiki answers of a minimum length are eligible