HEX
Server: Apache
System: Linux dilmahquizNew 5.14.0-162.12.1.el9_1.0.2.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 30 22:14:42 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/elixirofceylontea/public/wp-content/themes/posterity/advance/utilities/password.php
<?php
if(!function_exists('posterity_password_form')){
	/**
	 * Modify password form
	 *
     * @return string new HTML
     */
    function posterity_password_form() {
        //copy of function get_the_password_form() from \wp-includes\post-template.php ~1570
        //with small changes
        return
            '<form action="' . esc_url( home_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">
            <p class="inputs"><input name="post_password" type="password" size="20" placeholder="' . esc_attr__( 'password', 'posterity' ) . '" /><input type="submit" name="Submit" value="' . esc_attr__( 'Submit', 'posterity' ) . '" /></p>
            </form>
            ';
    }
}



if(!function_exists('posterity_custom_password_form')){
	/**
	 * Print password page template
	 *
     * @return string HTML
     */
    function posterity_custom_password_form() {
        //we get template to buffer and return it so other filters can do something with it
        ob_start();
        get_template_part('password-template');
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
}
add_filter( 'the_password_form', 'posterity_custom_password_form');



if(!function_exists('posterity_custom_password_form')){
	/**
	 * Print password page template
	 *
     * @return string HTML
     */
    function posterity_custom_password_form() {
        //we get template to buffer and return it so other filters can do something with it
        ob_start();
        get_template_part('password-template');
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
}
add_filter( 'the_password_form', 'posterity_custom_password_form');



if(!function_exists('posterity_add_password_form_to_template')) {
    function posterity_add_password_form_to_template( $content ) {
        return $content . posterity_password_form();
    }
}