Make WordPress Core

Changeset 30028


Ignore:
Timestamp:
10/26/2014 09:48:38 PM (10 years ago)
Author:
johnbillion
Message:

Introduce an edit_form_before_permalink action which gets fired after the title field but before the permalink fields. Fixes #29691. Props captaintheme

File:
1 edited

Legend:

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

    r30002 r30028  
    462462    <input type="text" name="post_title" size="30" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
    463463</div>
     464<?php
     465/**
     466 * Fires before the permalink field.
     467 *
     468 * @since 4.1.0
     469 *
     470 * @param WP_Post $post Post object.
     471 */
     472do_action( 'edit_form_before_permalink', $post );
     473?>
    464474<div class="inside">
    465475<?php
Note: See TracChangeset for help on using the changeset viewer.