1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Product Page
  5. Display field description as placeholder
  1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Display field description as placeholder

Display field description as placeholder

You can display placeholder text in your text and textarea fields by using the following filter. This will display your field description text as a placeholder instead:

<?php
/**
* Display description as placeholder
*/
add_filter( 'pewc_description_as_placeholder', '__return_true' );

Here’s how to add this snippet.

Was this article helpful?

Related Articles