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 |
---|---|
1131 | */ |
1132 | function get_the_password_form() { |
1133 | global $post; |
1134 | $label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID); |
1135 | $output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post"> |
1136 | <p>' . __("This post is password protected. To view it please enter your password below:") . '</p> |
1137 | <p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p> |
1138 | </form> |
1139 | '; |
1140 | return apply_filters('the_password_form', $output); |
1141 | } |
1142 |
|
1143 | /** |
1144 | * Whether currently in a page template. |
1145 | * |
1146 | * This template tag allows you to determine whether or not you are in a page |
1147 | * template. You can optional provide a template name and then the check will be |
1148 | * specific to that template. |
1149 | * |