[wp-hackers] Redefine wp_install_defaults() ?..

Otto otto at ottodestruct.com
Sun Feb 1 13:25:59 GMT 2009


On Sun, Feb 1, 2009 at 3:46 AM, David Barbakadze <jayarjo at gmail.com> wrote:
> Is it possible to redefine wp_install_defaults() and leave core file
> intact? I've found out that it is pluggable, but I'm not sure if I can
> make it being included without touching core WP files.

Yes, it's possible. Create an install.php file in the wp-content
directory. That will be loaded before the upgrade script, and you can
put your function there to override the existing one.

-Otto


More information about the wp-hackers mailing list