Make WordPress Core


Ignore:
Timestamp:
10/18/2020 09:15:51 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r49108 r49199  
    203203        </tr>
    204204    </table>
    205     <?php submit_button(); ?>
     205
     206    <?php
     207    /**
     208     * Fires at the end of the site info form in network admin.
     209     *
     210     * @since 5.6.0
     211     *
     212     * @param int $id The site ID.
     213     */
     214    do_action( 'network_site_info_form', $id );
     215
     216    submit_button();
     217    ?>
    206218</form>
    207219
Note: See TracChangeset for help on using the changeset viewer.