WC_Admin_Post_Types::edit_form_top()publicWC 1.0

Output extra data on post forms.

{} It's a method of the class: WC_Admin_Post_Types{}

No Hooks.

Return

null. Nothing.

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.

Code of WC_Admin_Post_Types::edit_form_top() WC 6.6.1

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