Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_password_form

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
1821       *
1822       * @since 2.7.0
1823       * @since 5.8.0 Added the `$post` parameter.
1824       * @since 6.8.0 Added the `$invalid_password` parameter.
1825       *
1826       * @param string  $output           The password form HTML output.
1827       * @param WP_Post $post             Post object.
1828       * @param string  $invalid_password The invalid password message.
1829       */
1830      return apply_filters( 'the_password_form', $output, $post, $invalid_password );
1831 }
1832
1833 /**
1834  * Determines whether the current post uses a page template.
1835  *
1836  * This template tag allows you to determine if you are in a page template.
1837  * You can optionally provide a template filename or array of template filenames
1838  * and then the check will be specific to that template.
1839  *