You can only override pluggable functions in a plugin, not via functions.php
. The function is already defined when functions.php
is loaded, which is why your overriding function is skipped. Move the code to your own plugin to enable it.
You can only override pluggable functions in a plugin, not via functions.php
. The function is already defined when functions.php
is loaded, which is why your overriding function is skipped. Move the code to your own plugin to enable it.