post_password_expires

post_password_expires

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('post_password_expires') is found 1 times:

  • /wp-login.php line 785
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    * @since 3.7.0
     *
     * @param int $expires The expiry time, as passed to setcookie().
     */
    $expire  = apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS );
    $referer = wp_get_referer();
     
    if ( $referer ) {
        $secure = ( 'https' === parse_url( $referer, PHP_URL_SCHEME ) );
    } else {
        $secure = false;