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.