{"id":605,"date":"2020-11-23T07:02:39","date_gmt":"2020-11-22T23:02:39","guid":{"rendered":"https:\/\/byy3.com\/?p=605"},"modified":"2020-11-23T07:25:08","modified_gmt":"2020-11-22T23:25:08","slug":"wordpress%e7%94%a8%e6%88%b7%e6%b3%a8%e5%86%8c%e5%a2%9e%e5%8a%a0%e9%aa%8c%e8%af%81%e7%a6%81%e6%ad%a2%e6%9c%ba%e5%99%a8%e6%b3%a8%e5%86%8c","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=605","title":{"rendered":"WordPress\u7528\u6237\u6ce8\u518c\u589e\u52a0\u9a8c\u8bc1\u7981\u6b62\u673a\u5668\u6ce8\u518c"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-606\" data-original=\"https:\/\/byy3.com\/wp-content\/uploads\/2020\/11\/2020112223234421.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" width=\"838\" height=\"437\" title=\"WordPress\u7528\u6237\u6ce8\u518c\u589e\u52a0\u9a8c\u8bc1\u7981\u6b62\u673a\u5668\u6ce8\u518c\u63d2\u56fe\" alt=\"WordPress\u7528\u6237\u6ce8\u518c\u589e\u52a0\u9a8c\u8bc1\u7981\u6b62\u673a\u5668\u6ce8\u518c\u63d2\u56fe\" \/><\/p>\n<p>\u5982\u4e0a\u56fe,<a title=\"wordpress\" href=\"https:\/\/byy3.com\/go\/?url=https:\/\/www.byy3.com\/\" rel=\"nofollow\" >wordpress<\/a>\u00a0\u9ed8\u8ba4\u4f1a\u7ed9\u7ba1\u7406\u5458\u53d1\u9001\u65b0\u7528\u6237\u6ce8\u518c\u548c\u4fee\u6539\u5bc6\u7801\u7684\u90ae\u4ef6\u63d0\u9192,\u4eba\u6027\u5316\u7684\u65f6\u4ee3,\u6211\u4e0d\u61c2\u4e3a\u4ec0\u4e48<a title=\"wordpress\" href=\"https:\/\/byy3.com\/?cat=15\">wordpress\u5efa\u7ad9<\/a>\u4e00\u76f4\u4e0d\u5c06\u8fd9\u4e2a\u529f\u80fd\u6539\u6210\u53ef\u8bbe\u7f6e\u9879,\u7f51\u4e0a\u5173\u4e8e\u8fd9\u4e2a\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6848\u662f\u4fee\u6539<a title=\"wordpress\" href=\"https:\/\/byy3.com\/?cat=15\">wordpress<\/a>\u6846\u67b6\u4ee3\u7801,\u53bb\u6389\u53d1\u9001\u90ae\u4ef6\u7684\u4ee3\u7801,\u6211\u662f\u575a\u51b3\u4e0d\u6539<a href=\"https:\/\/byy3.com\/?cat=15\">wordpress\u6846\u67b6<\/a>\u4ee3\u7801\u7684,\u800c\u4e14\u66f4\u65b0\u4e00\u6b21\u6539\u4e00\u6b21,\u4e0d\u9ebb\u70e6\u4e48?<\/p>\n<p>\u6211\u4e00\u4e2a\u5c0f\u7ad9\u90fd\u53d7\u4e0d\u4e86\u6bcf\u5929\u8fd9\u6837\u7684\u90ae\u4ef6\u63d0\u9192,\u6211\u4e0d\u77e5\u9053\u90a3\u4e9b\u5927\u6218\u662f\u5982\u4f55\u89e3\u51b3\u7684,\u6211\u53ef\u4ee5\u80af\u5b9a\u6bcf\u5929\u6536\u5230\u7684\u65b0\u7528\u6237\u6ce8\u518c\u5747\u4e3a\u673a\u5668\u4eba\u6ce8\u518c,\u6839\u672c\u4e0d\u662f\u771f\u5b9e\u7528\u6237,\u90a3\u4e48\u6ce8\u518c\u6beb\u65e0\u610f\u4e49,\u56e0\u6b64\u4eca\u5929\u62bd\u7a7a\u60f3\u4e86\u4e2a\u7b28\u529e\u6cd5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-607 aligncenter\" data-original=\"https:\/\/byy3.com\/wp-content\/uploads\/2020\/11\/2020112223243111.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" width=\"484\" height=\"697\" title=\"WordPress\u7528\u6237\u6ce8\u518c\u589e\u52a0\u9a8c\u8bc1\u7981\u6b62\u673a\u5668\u6ce8\u518c\u63d2\u56fe1\" alt=\"WordPress\u7528\u6237\u6ce8\u518c\u589e\u52a0\u9a8c\u8bc1\u7981\u6b62\u673a\u5668\u6ce8\u518c\u63d2\u56fe1\" \/><\/p>\n<p><strong>\u601d\u8def:<\/strong><\/p>\n<ol>\n<li>\u50cf\u8fd9\u79cd\u6bcf\u5929\u5783\u573e\u6ce8\u518c\u7528\u6237,\u90fd\u662f\u673a\u5668\u4eba,\u662f\u6709\u4eba\u7528\u8f6f\u4ef6\u6279\u91cf\u626b\u63cf<a href=\"https:\/\/byy3.com\/?cat=15\">wordpress\u7f51\u7ad9<\/a>\u6279\u91cf\u6ce8\u518c\u7684.<\/li>\n<li>\u5982\u4e0a\u56fe,\u6211\u535a\u5ba2\u662f\u6709\u6ce8\u518c\u548c\u767b\u9646\u9a8c\u8bc1\u7801\u7684,\u7136\u800c\u5e76\u6ca1\u6709\u4ec0\u4e48\u5375\u7528,\u90a3\u4e48\u53ea\u67092\u79cd\u53ef\u80fd,\u4e00\u79cd\u662f\u901a\u8fc7WP\u6211\u4e0d\u77e5\u9053\u7684\u63a5\u53e3\u65e0\u89c6\u9a8c\u8bc1\u7801\u6ce8\u518c,\u7b2c\u4e8c\u79cd\u53ef\u80fd\u662f\u4eba\u5bb6\u8f6f\u4ef6\u81ea\u5e26\u9a8c\u8bc1\u7801\u8bd5\u522b\u529f\u80fd,\u7ed9\u6211\u8bd5\u522b\u4e86\u9a8c\u8bc1\u7801.<\/li>\n<li>\u57fa\u4e8e\u4e0a\u8bc9\u60c5\u51b5,\u6211\u51b3\u5b9a\u5728\u7ed9\u6ce8\u518c\u52a0\u4e00\u5c42\u9a8c\u8bc1\u7801\u673a\u5236,2\u79cd\u9a8c\u8bc1\u7801\u540c\u65f6\u5b58\u5728\u7684\u60c5\u51b5\u4e0b,\u80fd\u76f4\u63a5\u675c\u7edd\u6389\u8f6f\u4ef6\u6279\u91cf\u6ce8\u518c\u7684\u53ef\u80fd,\u867d\u7136\u5982\u679c\u60f3,\u8fd8\u662f\u53ef\u4ee5\u6279\u91cf\u6ce8\u518c,\u4f46\u662f\u5b83\u90a3\u4e2a\u8f6f\u4ef6\u80af\u5b9a\u662f\u6279\u91cf\u7684,\u56e0\u6b64\u4e0d\u4f1a\u7279\u6b8a\u5bf9\u5f85\u56e0\u4e3a\u6211\u800c\u628a\u8f6f\u4ef6\u6539\u6210\u53cc\u9a8c\u8bc1\u7801,\u6240\u4ee5\u8fd9\u4e2a\u60f3\u6cd5\u662f\u53ef\u884c\u7684,\u9664\u975e,\u771f\u7684\u662f\u5229\u7528<a href=\"https:\/\/byy3.com\/?cat=15\">wordpress<\/a> \u6211\u4e0d\u77e5\u9053\u7684\u65e0\u89c6\u9a8c\u8bc1\u7801\u7684\u6ce8\u518c\u63a5\u53e3\u6279\u91cf\u6ce8\u518c.....\u4e0d\u7ba1\u5982\u4f55,\u5148\u8bd5\u9a8c\u4e00\u6bb5\u65f6\u95f4\u6548\u679c.\u90a3\u4e48\u8ba9\u6211\u4eec\u5f00\u59cb\u628a.<\/li>\n<\/ol>\n<p><strong>\u5b9e\u73b0\u4ee3\u7801\u6b65\u9aa4:<\/strong><\/p>\n<p>\u6211\u76ee\u524d\u5df2\u7ecf\u6709\u4e00\u4e2a\u56fe\u7247\u9a8c\u8bc1\u7801\u4e86,\u6240\u4ee5\u53ea\u9700\u8981\u5728\u52a0\u4e00\u4e2a\u9a8c\u8bc1\u7801\u5c31\u884c:<\/p>\n<pre><span style=\"font-family: arial, helvetica, sans-serif;\">\/\/<a href=\"https:\/\/byy3.com\/?p=605\">WordPress\u65b0\u7528\u6237\u6ce8\u518c<\/a>\u968f\u673a\u6570\u5b66\u9a8c\u8bc1\u7801<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">function add_security_question_fields() {<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">\u00a0 \/\/\u83b7\u53d6\u4e24\u4e2a\u968f\u673a\u6570, \u8303\u56f40~9<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> $num1=rand(0,10);<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> $num2=rand(0,10);<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">\u00a0 \/\/\u6700\u7ec8\u7f51\u9875\u4e2d\u7684\u5177\u4f53\u5185\u5bb9<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> echo \"&lt;p&gt;&lt;label for='math' class='small'&gt;\u771f\u4eba\u8bc6\u522b\uff1a$num1 + $num2 = ? &lt;\/label&gt;&lt;input type='text' name='sum' class='input' value='' size='25'&gt;\"<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> .\"&lt;input type='hidden' name='num1' value='$num1'&gt;\"<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> .\"&lt;input type='hidden' name='num2' value='$num2'&gt;&lt;\/p&gt;\";<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">}<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">add_action('register_form','add_security_question_fields');<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">add_action( 'register_post', 'add_security_question_validate', 10, 3 );<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">function add_security_question_validate( $sanitized_user_login, $user_email, $errors) {<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> $sum=$_POST['sum'];\/\/\u7528\u6237\u63d0\u4ea4\u7684\u8ba1\u7b97\u7ed3\u679c<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> switch($sum){<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> \/\/\u5f97\u5230\u6b63\u786e\u7684\u8ba1\u7b97\u7ed3\u679c\u5219\u76f4\u63a5\u8df3\u51fa<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> case $_POST['num1']+$_POST['num2']:break;<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> \/\/\u672a\u586b\u5199\u7ed3\u679c\u65f6\u7684\u9519\u8bef\u8baf\u606f<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> case null:wp_die('&lt;script&gt;alert(\"\u9519\u8bef\uff1a\u8bf7\u8f93\u5165\u771f\u4eba\u8bc6\u522b\u7ed3\u679c\uff01\");window.history.go(-1);&lt;\/script&gt;');break;<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> \/\/\u8ba1\u7b97\u9519\u8bef\u65f6\u7684\u9519\u8bef\u8baf\u606f<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\"> default:wp_die('&lt;script&gt;alert(\"\u9519\u8bef\uff1a\u771f\u4eba\u8bc6\u522b\u7ed3\u679c\u9519\u8bef,\u8bf7\u91cd\u8bd5\uff01\");window.history.go(-1);&lt;\/script&gt;');}<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">}<\/span>\r\n\r\n<span style=\"font-family: arial, helvetica, sans-serif;\">add_action( 'add_security_question','register_form' );<\/span><\/pre>\n<p>\u5c06\u4e0a\u9762\u7684\u4ee3\u7801\u6dfb\u52a0\u5230\u4e3b\u9898\u7684 functions.php \u6587\u4ef6\u672b\u5c3e\u5904\u5373\u53ef.<\/p>\n<p>\u6548\u679c\u56fe:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-608 aligncenter\" data-original=\"https:\/\/byy3.com\/wp-content\/uploads\/2020\/11\/2020112223245773.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" width=\"397\" height=\"726\" title=\"WordPress\u7528\u6237\u6ce8\u518c\u589e\u52a0\u9a8c\u8bc1\u7981\u6b62\u673a\u5668\u6ce8\u518c\u63d2\u56fe2\" alt=\"WordPress\u7528\u6237\u6ce8\u518c\u589e\u52a0\u9a8c\u8bc1\u7981\u6b62\u673a\u5668\u6ce8\u518c\u63d2\u56fe2\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4e0a\u56fe,wordpress\u00a0\u9ed8\u8ba4\u4f1a\u7ed9\u7ba1\u7406\u5458\u53d1\u9001\u65b0\u7528\u6237\u6ce8\u518c\u548c\u4fee\u6539\u5bc6\u7801\u7684\u90ae\u4ef6\u63d0\u9192,\u4eba\u6027\u5316\u7684\u65f6\u4ee3,\u6211\u4e0d\u61c2\u4e3a\u4ec0\u4e48wor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[16,109,108],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=605"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/605\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}