Created
February 5, 2018 20:03
-
-
Save jeremyescott/03cb08b2b6d8446c2de62586d45a8045 to your computer and use it in GitHub Desktop.
Change Label or Add a Placeholder to Matador Application Fields
This file contains hidden or 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
function matador_tutorial_application_fields( $fields ) { | |
$fields['firstName']['label'] = 'Label Name'; // changes the label | |
$fields['firstName']['attributes']['placeholder'] = 'Placeholder Content'; // Adds a placeholder | |
return $fields; | |
} | |
add_filter( 'matador_application_fields_structure', 'matador_tutorial_application_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment