WC_Admin_Post_Types::edit_form_top()publicWC 1.0

Output extra data on post forms.

Method of the class: WC_Admin_Post_Types{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->edit_form_top( $post );
$post(WP_Post) (required)
Current post object.

WC_Admin_Post_Types::edit_form_top() code WC 8.7.0

public function edit_form_top( $post ) {
	echo '<input type="hidden" id="original_post_title" name="original_post_title" value="' . esc_attr( $post->post_title ) . '" />';
}