Thread Starter
Andrés
(@odosuiadan)
i’m using w-sahdow’s class
http://w-shadow.com/blog/2011/06/02/automatic-updates-for-commercial-themes/
this class uses the
add_filter('site_transient_update_themes', array($this,'injectUpdate'));
function to add the hook,
point is: i tried to put a simple echo “TEST”; in my themes function.php file, and then go to the network admin panel. “TEST” only is printed (in network andmin) if i have activated the theme on the main site of the network.
my conclusion is that the same happens to the hook, since , i think, the themes function.php file is only included if the theme is active in the networks main site (don’t know why it must be the main site).
I don’t know how to add the “update check” hook if functions.pho is not included.