WC_Admin_Post_Types::edit_form_after_title()publicWC 1.0

Print coupon description textarea field.

{} 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_after_title( $post );
$post(WP_Post) (required)
Current post object.

Code of WC_Admin_Post_Types::edit_form_after_title() WC 6.7.0

<?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
}