WC_Admin_Post_Types::edit_form_after_title( WP_Post $post )

Print coupon description textarea field.


Description Description


Parameters Parameters

$post

(Required) Current post object.


Top ↑

Source Source

File: includes/admin/class-wc-admin-post-types.php

	public function edit_form_after_title( $post ) {
		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; // WPCS: XSS ok. ?></textarea>
			<?php
		}
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.