WordPress.org

Make WordPress Core

Changeset 36526


Ignore:
Timestamp:
02/13/2016 04:00:07 AM (4 years ago)
Author:
boonebgorges
Message:

Introduce {$taxonomy}_term_edit_form_top action to edit-tag-form.php.

This new action gives developers a place to output content at the beginning
of the form element on edit-tags.php.

Props flixos90.
Fixes #35252.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r36308 r36526  
    102102wp_original_referer_field( true, 'previous' );
    103103wp_nonce_field( 'update-tag_' . $term_id );
     104
     105/**
     106 * Fires at the beginning of the Edit Term form.
     107 *
     108 * At this point, the required hidden fields and nonces have already been output.
     109 *
     110 * @since 4.5.0
     111 *
     112 * @param object $tag      Current taxonomy term object.
     113 * @param string $taxonomy Current $taxonomy slug.
     114 */
     115do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
    104116?>
    105117    <table class="form-table">
Note: See TracChangeset for help on using the changeset viewer.