-
-
Save billerickson/b1b62734ee880d061bc8ebfc34761770 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* WPForms, description above field | |
* @author Bill Erickson | |
* @see https://www.billerickson.net/code/wpforms-description-above-field | |
* | |
* @param array $properties, field properties | |
* @return array | |
*/ | |
function ea_wpforms_description_above_field( $properties ) { | |
$properties['description']['position'] = 'before'; | |
return $properties; | |
} | |
add_filter( 'wpforms_field_properties', 'ea_wpforms_description_above_field' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment