WC_Admin_Post_Types::edit_form_top()
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() WC Admin Post Types::edit form top code WC 9.8.2
public function edit_form_top( $post ) { echo '<input type="hidden" id="original_post_title" name="original_post_title" value="' . esc_attr( $post->post_title ) . '" />'; }