Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: signup_user_meta

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
755       * The metadata will be serialized prior to storing it in the database.
756       *
757       * @since 4.8.0
758       *
759       * @param array  $meta       Signup meta data. Default empty array.
760       * @param string $user       The user's requested login name.
761       * @param string $user_email The user's email address.
762       * @param string $key        The user's activation key.
763       */
764      $meta = apply_filters( 'signup_user_meta', $meta, $user, $user_email, $key );
765
766      $wpdb->insert( $wpdb->signups, array(
767           'domain' => '',
768           'path' => '',
769           'title' => '',
770           'user_login' => $user,
771           'user_email' => $user_email,
772           'registered' => current_time('mysql', true),
773           'activation_key' => $key,