WC_Admin_Post_Types::edit_form_after_title()
Print coupon description textarea field.
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_after_title( $post );
- $post(WP_Post) (required)
- Current post object.
WC_Admin_Post_Types::edit_form_after_title() WC Admin Post Types::edit form after title code WC 9.7.1
<?php public function edit_form_after_title( $post ) { // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped if ( 'shop_coupon' === $post->post_type ) { ?> <textarea id="woocommerce-coupon-description" name="excerpt" cols="5" rows="2" placeholder="<?php esc_attr_e( 'Description (optional)', 'woocommerce' ); ?>"><?php echo $post->post_excerpt; ?></textarea> <?php } // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped }