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 |
|---|---|
| 301 | <tr> |
| 302 | <th scope="row"><?php _e('E-mail') ?></th> |
| 303 | <td><input name="email" type="text" id="email" /></td> |
| 304 | </tr> |
| 305 | <tr> |
| 306 | <th scope="row"><?php _e('Website') ?></th> |
| 307 | <td><input name="uri" type="text" id="uri" /></td> |
| 308 | </tr> |
| 309 | <?php |
| 310 | $show_password_fields = apply_filters('show_password_fields', true); |
| 311 | if ( $show_password_fields ) : |
| 312 | ?> |
| 313 | <tr> |
| 314 | <th scope="row"><?php _e('Password (twice)') ?> </th> |
| 315 | <td><input name="pass1" type="password" id="pass1" /> |
| 316 | <br /> |
| 317 | <input name="pass2" type="password" id="pass2" /></td> |
| 318 | </tr> |
| 319 | <?php endif; ?> |