Welcome, visitor! Log in
 

Source View: salt

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
1048           $salt = SECRET_SALT;
1049      } else {
1050           $salt = get_option('secret');
1051           if ( empty($salt) ) {
1052                $salt = wp_generate_password();
1053                update_option('secret', $salt);
1054           }
1055      }
1056
1057      return apply_filters('salt', $secret_key . $salt);
1058 }
1059 endif;
1060
1061 if ( !function_exists('wp_hash') ) :
1062 /**
1063  * wp_hash() - Get hash of given string
1064  *
1065  * @since 2.0.4
1066  * @uses wp_salt() Get WordPress salt