Created
July 30, 2013 00:01
-
-
Save brichards/6108974 to your computer and use it in GitHub Desktop.
Array-based filter
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
/** | |
* Allow definition of default variables | |
* | |
* @since MU | |
* | |
* @param array $user_data The user data to define { | |
* @type string "user_name" The username | |
* @type string "user_email" The user's email | |
* @type array "errors" | |
* } | |
*/ | |
$filtered_results = apply_filters('signup_user_init', array('user_name' => $user_name, 'user_email' => $user_email, 'errors' => $errors )); | |
$user_name = $filtered_results['user_name']; | |
$user_email = $filtered_results['user_email']; | |
$errors = $filtered_results['errors']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment