IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 1211 | 1211 | * @return int|false The user's ID on success, and false on failure. |
| 1212 | 1212 | */ |
| 1213 | 1213 | function email_exists( $email ) { |
| 1214 | | if ( $user = get_user_by( 'email', $email) ) { |
| 1215 | | return $user->ID; |
| | 1214 | if ( $user = get_user_by( 'email', $email ) ) { |
| | 1215 | |
| | 1216 | /** |
| | 1217 | * Filter whether the Email exists or not |
| | 1218 | * |
| | 1219 | * @since 4.5.0 |
| | 1220 | * |
| | 1221 | * @param int|false $user_id Email user id. |
| | 1222 | * @param string $email Email. |
| | 1223 | */ |
| | 1224 | |
| | 1225 | return apply_filters( 'email_exists', $user->ID, $email ); |
| 1216 | 1226 | } |
| 1217 | | return false; |
| | 1227 | |
| | 1228 | /** This filter is documented in wp-includes/user.php */ |
| | 1229 | return apply_filters( 'email_exists', false, $email ); |
| 1218 | 1230 | } |
| 1219 | 1231 | |
| 1220 | 1232 | /** |