WordPress 更改文章密码保护后显示的提示内容
1 2 3 4 5 6 7 8 9 10 11 12 /** * WordPress 更改文章密码保护后显示的提示内容 * http://www.wpdaxue.com/change-password-protected-text.html */ function password_protected_change( $content ) { global $post; if ( ! empty( $post->post_password ) && stripslashes( $_COOKIE['wp-postpass_'.COOKIEHASH] ) != $post->post_password ) { $output = ' <form action="' . get_option( 'siteurl' ) . '/wp-pass.php" method="post"> '.\_\_( &#...