Last active
June 29, 2016 20:08
-
-
Save sbruner/4902a6c7d966da22a0f020c95910be86 to your computer and use it in GitHub Desktop.
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
<?php | |
// Use the built-in sanitize function: file_name | |
piklist('field', array( | |
'type' => 'text' | |
,'label' => 'File Name' | |
,'field' => 'sanitize_file_name' | |
,'description' => 'Converts multiple words to a valid file name' | |
,'sanitize' => array( | |
array( | |
'type' => 'file_name' | |
) | |
) | |
)); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment