[wp-trac] [WordPress Trac] #31761: register_activation_hook doesn't work for themes on Network Enable action

WordPress Trac noreply at wordpress.org
Wed Mar 25 12:22:53 UTC 2015


#31761: register_activation_hook doesn't work for themes on Network Enable action
--------------------------------+-----------------------------
 Reporter:  brainstormforce     |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  4.1.1
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 Hello

 In case of plugins, we've register_activation_hook available on the
 Network Activate action. Screenshot - http://bsf.io/51lx2

 However, in case of themes, register_activation_hook doesn't work nor we
 have any other similar hook available on Network Enable action. Screenshot
 - http://bsf.io/xwx7w

 Use case of register_activation_hook for themes on Network Enable -

 We need to add a menu on Network Admin dashboard as the theme is Network
 Enabled. Hook similar as register_activation_hook could have helped us
 achieve this.

 Please note, the menu needs to be displayed only on Network Admin
 dashboard and not on the dashboard of individual sites.


 Are we missing something? Any help would be greatly appreciated.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31761>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list