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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display description as placeholder | |
*/ | |
add_filter( 'pewc_description_as_placeholder', '__return_true' ); |
Here’s how to add this snippet.