Networks and Sites: Introduce network_site_info_form action.

The action fires at the end of the site info form in network admin, and complements the existing `network_site_new_form` action.

Props virgodesign.
Fixes #50704.

git-svn-id: https://develop.svn.wordpress.org/trunk@49199 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-10-18 21:15:51 +00:00
parent 5efc326c34
commit 0392a498db

View File

@ -202,7 +202,19 @@ if ( ! empty( $messages ) ) {
</td>
</tr>
</table>
<?php submit_button(); ?>
<?php
/**
* Fires at the end of the site info form in network admin.
*
* @since 5.6.0
*
* @param int $id The site ID.
*/
do_action( 'network_site_info_form', $id );
submit_button();
?>
</form>
</div>