WordPress.org

Make WordPress Core

Changeset 36555


Ignore:
Timestamp:
02/17/16 19:02:17 (19 months ago)
Author:
jeremyfelt
Message:

Multisite: Add a hook to the end of the Add Site form.

The network_site_new_form action can be used to extend the new site form.

Props igmoweb, ocean90.
Fixes #34739.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r35893 r36555  
    230230        </tr> 
    231231    </table> 
    232     <?php submit_button( __('Add Site'), 'primary', 'add-site' ); ?> 
     232 
     233    <?php 
     234    /** 
     235     * Fires at the end of the new site form in network admin. 
     236     * 
     237     * @since 4.5.0 
     238     */ 
     239    do_action( 'network_site_new_form' ); 
     240 
     241    submit_button( __( 'Add Site' ), 'primary', 'add-site' ); 
     242    ?> 
    233243    </form> 
    234244</div> 
Note: See TracChangeset for help on using the changeset viewer.