edit_form_before_permalinkaction-hookWP 4.1.0

Fires after the post title input field but before the post permalink is displayed, allowing the output content to be changed.

Usage

add_action( 'edit_form_before_permalink', 'wp_kama_edit_form_before_permalink_action' );

/**
 * Function for `edit_form_before_permalink` action-hook.
 * 
 * @param WP_Post $post Post object.
 *
 * @return void
 */
function wp_kama_edit_form_before_permalink_action( $post ){

	// action...
}
$post(WP_Post)
The post object. See get_post() for the object structure.

Examples

#1 Display a block with your favorite content

add_action( 'edit_form_before_permalink', 'callback__edit_form_before_permalink' );
function callback__edit_form_before_permalink( $post ) {
	?>
	<div style="margin-top: 10px;padding: 15px;color: #fff;background: #914029;clear: both;">
		The <b>edit_form_before_permalink</b> hook fired here.
	</div>
	<?php
}

Changelog

Since 4.1.0 Introduced.

Where the hook is called

In file: /wp-admin/edit-form-advanced.php
edit_form_before_permalink
wp-admin/edit-form-advanced.php 558
do_action( 'edit_form_before_permalink', $post );

Where the hook is used in WordPress

Usage not found.