[wp-trac] [WordPress Trac] #49968: Network Site Info - No hooks for customzsation

WordPress Trac noreply at wordpress.org
Tue Apr 21 10:33:57 UTC 2020


#49968: Network Site Info - No hooks for customzsation
---------------------------------------+-----------------------------
 Reporter:  mikeyhoward1977            |      Owner:  (none)
     Type:  enhancement                |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Networks and Sites         |    Version:  trunk
 Severity:  normal                     |   Keywords:
  Focuses:  administration, multisite  |
---------------------------------------+-----------------------------
 Currently, there are no hooks to enable developers to add fields to the
 site info table.

 I propose to add hooks after each field to enable developers to add fields
 as required. Furthermore, a hook to enable the saving of the fields also.

 `do_action( 'update_site_info', $id );` will run immediately after the
 default fields are saved and before the restoring of current blog and
 subsequent redirect occurs.

 * `do_action( 'network_site_info_after_address_field', $id, $details );`
 * `do_action( 'network_site_info_after_registered_field', $id, $details
 );`
 * `do_action( 'network_site_info_after_last_updated_field', $id, $details
 );`
 * `do_action( 'network_site_info_after_attributes_field', $id, $details
 );`

 Will all run immediately after the respective default fields.

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


More information about the wp-trac mailing list