WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1851 | * @type int|bool $use_ssl Whether to force SSL on the user's admin area. 0|false if SSL |
1852 | * is not forced. |
1853 | * @type string $show_admin_bar_front Whether to show the admin bar on the front end for the user. |
1854 | * Default 'true'. |
1855 | * @type string $locale User's locale. Default empty. |
1856 | * } |
1857 | * @param WP_User $user User object. |
1858 | * @param bool $update Whether the user is being updated rather than created. |
1859 | */ |
1860 | $meta = apply_filters( 'insert_user_meta', $meta, $user, $update ); |
1861 |
|
1862 | // Update user meta. |
1863 | foreach ( $meta as $key => $value ) { |
1864 | update_user_meta( $user_id, $key, $value ); |
1865 | } |
1866 |
|
1867 | foreach ( wp_get_user_contact_methods( $user ) as $key => $value ) { |
1868 | if ( isset( $userdata[ $key ] ) ) { |
1869 | update_user_meta( $user_id, $key, $userdata[ $key ] ); |