{"id":642,"date":"2017-01-05T19:41:44","date_gmt":"2017-01-05T10:41:44","guid":{"rendered":"http:\/\/okamurax.com\/?p=642"},"modified":"2026-01-19T10:53:48","modified_gmt":"2026-01-19T01:53:48","slug":"wordpress-%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%9e%e3%82%a4%e3%82%ba","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=642","title":{"rendered":"WordPress \u30ab\u30b9\u30bf\u30de\u30a4\u30ba(\u66f4\u65b0\u542b\u3080)"},"content":{"rendered":"<h2>\u8a18\u4e8b\u4e00\u89a7<\/h2>\n<p>\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"VydRnNx3NC\"><p><a href=\"https:\/\/appbay.org\/?p=3269\">WordPress \u8a18\u4e8b\u4e00\u89a7\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30bf\u30eb\u691c\u7d22<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;WordPress \u8a18\u4e8b\u4e00\u89a7\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30bf\u30eb\u691c\u7d22&#8221; &#8212; \u30c6\u30c3\u30af\u30e1\u30e2\" src=\"https:\/\/appbay.org\/?p=3269&#038;embed=true#?secret=1dAhU8hkG0#?secret=VydRnNx3NC\" data-secret=\"VydRnNx3NC\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>\u30bf\u30a4\u30c8\u30eb\u8868\u793a(\u6295\u7a3f)\u3092\u6d88\u3059<\/h2>\n<p>\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002<\/p>\n<p><span style=\"color: #0000ff;\">wp-content\/themes\/xxx\/index.php<\/span><br \/>\n\u306e\u4e2d\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3002<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;?php if ( is_home() &amp;&amp; ! is_front_page() ) : ?&gt;\r\n\t&lt;header class=\"page-header\"&gt;\r\n\t\t&lt;h1 class=\"page-title\"&gt;&lt;?php single_post_title(); ?&gt;&lt;\/h1&gt;\r\n\t&lt;\/header&gt;\r\n&lt;?php else : ?&gt;\r\n&lt;!--\r\n&lt;header class=\"page-header\"&gt;\r\n\t&lt;h2 class=\"page-title\"&gt;&lt;?php _e( 'Posts', 'twentyseventeen' ); ?&gt;&lt;\/h2&gt;\r\n&lt;\/header&gt;\r\n--&gt;\r\n&lt;?php endif; ?&gt;\r\n<\/pre>\n<h2>\u30c6\u30fc\u30de\u306e\u5e45\u5909\u66f4<\/h2>\n<p>\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002<\/p>\n<p><span style=\"color: #0000ff;\">wp-content\/themes\/xxx\/style.css<\/span><br \/>\n\u306e3408\u884c(\/* Layout *\/)\u4ee5\u4e0b\u3001\u5909\u66f4\u3002<\/p>\n<p><span style=\"color: #0000ff;\">.wrap<\/span><br \/>\n<span style=\"color: #0000ff;\">max-width<\/span><br \/>\n\u30921000px\u304b\u30891200px<\/p>\n<p><span style=\"color: #0000ff;\">.has-sidebar:not(.error404) #primary<\/span><br \/>\n<span style=\"color: #0000ff;\">width<\/span><br \/>\n\u309258%\u304b\u308962%<\/p>\n<p><span style=\"color: #0000ff;\">.has-sidebar #secondary<\/span><br \/>\n<span style=\"color: #0000ff;\">width<\/span><br \/>\n\u309236%\u304b\u308932%<\/p>\n<h2>\u898b\u51fa\u81ea\u52d5\u30a4\u30f3\u30c7\u30f3\u30c8\u3001\u8a18\u53f7\u8ffd\u52a0<\/h2>\n<p>public_html\/wp-content\/themes\/xxx\/style.css<br \/>\n\u672b\u5c3e\u306b\u8ffd\u52a0<\/p>\n<pre class=\"lang:css decode:true \">\/*\r\n.entry-content h2::before { content: \"\u25a0 \"; }\r\n*\/\r\n\r\n.entry-content :is(h2, h3, h4, h5, h6) {\r\n  border-bottom: 1px dotted var(--wp--preset--color--contrast, #ddd);\r\n  padding-bottom: 0.25em;\r\n  font-size: 1rem;\r\n  font-weight: normal;\r\n  margin-left: 0 !important;\r\n}\r\n\r\n.h2-section { margin-left: 1em; }\r\n.h3-section { margin-left: 3em; }\r\n.h4-section { margin-left: 5em; }\r\n.h5-section { margin-left: 7em; }\r\n.h6-section { margin-left: 8em; }\r\n\r\n.h2-section &gt; :is(h2),\r\n.h3-section &gt; :is(h3),\r\n.h4-section &gt; :is(h4),\r\n.h5-section &gt; :is(h5),\r\n.h6-section &gt; :is(h6) {\r\n  margin-left: -0.5em !important;\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h2>(\u672a\u4f7f\u7528)\u4e0d\u8981\u30d5\u30a1\u30a4\u30eb\u524a\u9664<\/h2>\n<p>\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002<\/p>\n<p><span style=\"color: #0000ff;\">public_html<br \/>\n<\/span>\u306b\u3066\u5b9f\u884c\u3002<br \/>\n<span style=\"color: #0000ff;\">rm -i readme.html<\/span><br \/>\n<span style=\"color: #0000ff;\">rm -i license.txt<\/span><br \/>\n<span style=\"color: #0000ff;\">rm -i wp-config-sample.php<\/span><\/p>\n<h2>(\u672a\u4f7f\u7528)A\u30bf\u30b0\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\u975e\u8868\u793a<\/h2>\n<p>\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002<\/p>\n<p><span style=\"color: #0000ff;\">wp-content\/themes\/xxx\/style.css<br \/>\n<\/span>\u306e\u4e2d\u3067<span style=\"color: #0000ff;\"><br \/>\n<\/span><span style=\"color: #0000ff;\">.entry-content a(1191\u884c)<\/span><br \/>\n\u304c\u542b\u307e\u308c\u308b<br \/>\n<span style=\"color: #0000ff;\">-webkit-box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 1);<\/span><br \/>\n<span style=\"color: #0000ff;\">box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 1);<\/span><br \/>\n\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3002<\/p>\n<p><span style=\"color: #0000ff;\">.entry-content a:focus(1237\u884c)<\/span><br \/>\n<span style=\"color: #0000ff;\">.entry-content a:hover(1238\u884c)<\/span><br \/>\n\u304c\u542b\u307e\u308c\u308b<br \/>\n<span style=\"color: #0000ff;\">-webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 rgba(0, 0, 0, 1);<\/span><br \/>\n<span style=\"color: #0000ff;\">box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 rgba(0, 0, 0, 1);<\/span><br \/>\n\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3002<\/p>\n<h2>(\u672a\u4f7f\u7528)Analytics\/AdSense\u9023\u643a<\/h2>\n<p>\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"d0gaH51QON\"><p><a href=\"https:\/\/appbay.org\/?p=3241\">Google Analytics\/AdSense WordPress \u9023\u643a<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Google Analytics\/AdSense WordPress \u9023\u643a&#8221; &#8212; \u30c6\u30c3\u30af\u30e1\u30e2\" src=\"https:\/\/appbay.org\/?p=3241&#038;embed=true#?secret=imXz4B3ocw#?secret=d0gaH51QON\" data-secret=\"d0gaH51QON\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>(\u672a\u4f7f\u7528)\u30bf\u30b0\u4e00\u89a7\u3067\u672c\u6587\u975e\u8868\u793a<\/h2>\n<p>\u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002<\/p>\n<p><span style=\"color: #0000ff;\">wp-content\/themes\/xxx<\/span><br \/>\n\u306e\u4e2d\u306b\u3001<br \/>\n<span style=\"color: #0000ff;\">tag.php<\/span><br \/>\n\u3092\u4f5c\u6210\u3057\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u5165\u3002<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n\r\nget_header(); ?&gt;\r\n\r\n&lt;div class=\"wrap\"&gt;\r\n\t&lt;div id=\"primary\" class=\"content-area\"&gt;\r\n\t\t&lt;main id=\"main\" class=\"site-main\" role=\"main\"&gt;\r\n\r\n\t\t&lt;?php\r\n\r\n\t\tif (have_posts()){\r\n\r\n\t\t\twhile (have_posts()){\r\n\r\n\t\t\t\tthe_post();\r\n\r\n\t\t\t\techo '&lt;header class=\"entry-header\"&gt;';\r\n\t\t\t\tif ('post' === get_post_type() ) {\r\n\t\t\t\t\techo '&lt;div class=\"entry-meta\"&gt;';\r\n\t\t\t\t\techo twentyseventeen_time_link();\r\n\t\t\t\t\ttwentyseventeen_edit_link();\r\n\t\t\t\t\techo '&lt;\/div&gt;&lt;!-- .entry-meta --&gt;';\r\n\t\t\t\t};\r\n\t\t\t\tthe_title('&lt;span class=\"entry-title\"&gt;&lt;a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\"&gt;', '&lt;\/a&gt;&lt;\/span&gt;' );\r\n\t\t\t\techo \"&lt;\/header&gt;\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\tthe_posts_pagination(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'prev_text'          =&gt; twentyseventeen_get_svg( array( 'icon' =&gt; 'arrow-left' ) ) . '&lt;span class=\"screen-reader-text\"&gt;' . __( 'Previous page', 'twentyseventeen' ) . '&lt;\/span&gt;',\r\n\t\t\t\t\t'next_text'          =&gt; '&lt;span class=\"screen-reader-text\"&gt;' . __( 'Next page', 'twentyseventeen' ) . '&lt;\/span&gt;' . twentyseventeen_get_svg( array( 'icon' =&gt; 'arrow-right' ) ),\r\n\t\t\t\t\t'before_page_number' =&gt; '&lt;span class=\"meta-nav screen-reader-text\"&gt;' . __( 'Page', 'twentyseventeen' ) . ' &lt;\/span&gt;',\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\t?&gt;\r\n\r\n\t\t&lt;\/main&gt;&lt;!-- #main --&gt;\r\n\t&lt;\/div&gt;&lt;!-- #primary --&gt;\r\n\t&lt;?php get_sidebar(); ?&gt;\r\n&lt;\/div&gt;&lt;!-- .wrap --&gt;\r\n\r\n&lt;?php\r\n\r\nget_footer();\r\n<\/pre>\n<h2>\u66f4\u65b0\u9806\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8<\/h2>\n<p>\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u5316\u6e08\u307f<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"tpP0WRkbOi\"><p><a href=\"https:\/\/appbay.org\/?p=3310\">WordPress \u66f4\u65b0\u9806\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;WordPress \u66f4\u65b0\u9806\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8&#8221; &#8212; \u30c6\u30c3\u30af\u30e1\u30e2\" src=\"https:\/\/appbay.org\/?p=3310&#038;embed=true#?secret=XmbtEgVyO0#?secret=tpP0WRkbOi\" data-secret=\"tpP0WRkbOi\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>\u7279\u5b9a\u306e\u30da\u30fc\u30b8\u306bJavaScript\u3092\u633f\u5165<\/h2>\n<p>\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u5316\u6e08\u307f<\/p>\n<p>\u3053\u3053\u3067\u306f\u4e0b\u8a18\u306b\u633f\u5165\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"CyvrbA5Haf\"><p><a href=\"https:\/\/appbay.org\/?p=151\">FFmpeg \u30e1\u30e2<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;FFmpeg \u30e1\u30e2&#8221; &#8212; \u30c6\u30c3\u30af\u30e1\u30e2\" src=\"https:\/\/appbay.org\/?p=151&#038;embed=true#?secret=PsNBsIvX0t#?secret=CyvrbA5Haf\" data-secret=\"CyvrbA5Haf\" width=\"525\" height=\"296\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<pre class=\"lang:php decode:true \">add_action('wp_footer', 'get_time_range', 1);\r\n\r\nfunction get_time_range(){\r\n\r\nif (!is_single('151')) return;\r\n\r\necho &lt;&lt;&lt;HTML\r\n\r\n  &lt;style&gt;\r\n  #sh,#sm,#ss,#eh,#em,#es {\r\n    display: inline;\r\n  }\r\n  &lt;\/style&gt;\r\n\r\n  &lt;script&gt;\r\n\r\n  jQuery(window).on('load', function() {\r\n\r\n    jQuery('#sh').on('change', ToSec);\r\n    jQuery('#sm').on('change', ToSec);\r\n    jQuery('#ss').on('change', ToSec);\r\n    jQuery('#eh').on('change', ToSec);\r\n    jQuery('#em').on('change', ToSec);\r\n    jQuery('#es').on('change', ToSec);\r\n\r\n    function ToSec(){\r\n      let startSec = (Number(jQuery('#sh').val()) * 60 * 60) + (Number(jQuery('#sm').val()) * 60) + Number(jQuery('#ss').val());\r\n      let endSec = (Number(jQuery('#eh').val()) * 60 * 60) + (Number(jQuery('#em').val()) * 60) + Number(jQuery('#es').val());\r\n      let rangeSec = endSec - startSec;\r\n      jQuery('#cmd').text('ffmpeg -ss ' + startSec + ' -i i.mp4 -t ' + rangeSec + ' o.mp4');\r\n    }\r\n\r\n  });\r\n\r\n  &lt;\/script&gt;\r\n\r\nHTML;\r\n\r\n}<\/pre>\n<h2>\u30bf\u30b0\u30af\u30e9\u30a6\u30c9\u3092\u6295\u7a3f\u6570\u9806\u306b\u5909\u66f4<\/h2>\n<p>\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u5316\u6e08\u307f<\/p>\n<pre class=\"lang:php decode:true\">function args_customize($args) {\r\n\r\n  $add_args = array(\r\n      'orderby' =&gt; 'count',\r\n      'order' =&gt; 'DESC',\r\n  );\r\n  $args = wp_parse_args($args, $add_args);\r\n  return $args;\r\n}\r\n\r\nadd_action('widget_tag_cloud_args', 'args_customize');<\/pre>\n<h2>\u30bf\u30b0\u30af\u30e9\u30a6\u30c9\u306bCSS\u3092\u9069\u7528<\/h2>\n<p>\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u5316\u6e08\u307f<\/p>\n<pre class=\"lang:php decode:true\">function tag_cloud_css(){\r\n\r\necho &lt;&lt;&lt;HTML\r\n\r\n  &lt;style&gt;\r\n  .tagcloud li {\r\n    font-size: 0.9em;\r\n  }\r\n  &lt;\/style&gt;\r\n\r\nHTML;\r\n}\r\n\r\nadd_action('wp_footer', 'tag_cloud_css', 1);<\/pre>\n<h2>REST API\u3092\u7121\u52b9\u5316<\/h2>\n<p>\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u5316\u6e08\u307f<\/p>\n<p>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u304c\u6a19\u6e96\u3060\u3068\u52d5\u304b\u306a\u3044\u304c\u3001\u585e\u304c\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p><span style=\"color: #0000ff;\">http:\/\/okamurax.com\/wp-json\/wp\/v2\/posts<\/span><br \/>\n<span style=\"color: #0000ff;\">http:\/\/okamurax.com\/?rest_route=\/wp\/v2\/posts<\/span><\/p>\n<pre class=\"lang:php decode:true\">function disable_rest() {\r\n  return new WP_Error();\r\n}\r\nadd_action('rest_authentication_errors', 'disable_rest');<\/pre>\n<h2>\u66f4\u65b0\u65e5\u3092\u5909\u66f4\u3057\u306a\u3044<\/h2>\n<p>\u66f4\u65b0\u65e5\u3092\u66f4\u65b0\u3057\u306a\u3044\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u8a18\u4e8b\u7de8\u96c6\u753b\u9762\u306b\u8ffd\u52a0\u3002<\/p>\n<p>\u30fb\u30d7\u30e9\u30b0\u30a4\u30f3\u5316\u6e08\u307f<\/p>\n<pre class=\"lang:php decode:true \">add_action('admin_menu', function(){\r\n\tadd_meta_box('high_low', '\u66f4\u65b0\u65e5', function(){\r\n\t\techo '&lt;div style=\"padding-top: 3px; overflow: hidden;\"&gt;';\r\n\t\techo '&lt;div style=\"width: 100px; float: left;\"&gt;&lt;input name=\"high_low\" type=\"radio\" value=\"high\" checked=\"checked\"&gt;\u66f4\u65b0\u3059\u308b&lt;\/div&gt;';\r\n\t\techo '&lt;div&gt;&lt;input name=\"high_low\" type=\"radio\" value=\"low\"&gt;\u66f4\u65b0\u3057\u306a\u3044&lt;\/div&gt;';\r\n\t\techo '&lt;\/div&gt;';\r\n\t}, 'post', 'side', 'high');\r\n});\r\n\r\nadd_action('save_post', function($post_id){\r\n\t$high_low = isset($_POST['high_low']) ? $_POST['high_low'] : null;\r\n  if(\"\" == get_post_meta($post_id, 'high_low')) {\r\n\t\tadd_post_meta($post_id, 'high_low', $high_low, true) ;\r\n  } elseif($high_low != get_post_meta($post_id, 'high_low')) {\r\n\t\tupdate_post_meta($post_id, 'high_low', $high_low) ;\r\n  } elseif(\"\" == $high_low) {\r\n\t\tdelete_post_meta($post_id, 'high_low') ;\r\n\t}\r\n});\r\n\r\nadd_filter('wp_insert_post_data', function($data, $postarr){\r\n\t$high_low = isset($_POST['high_low']) ? $_POST['high_low'] : null;\r\n\tif($high_low == \"low\"){\r\n\t\t\tunset($data[\"post_modified\"]);\r\n\t\t\tunset($data[\"post_modified_gmt\"]);\r\n\t}\r\n\treturn $data;\r\n}, 10, 2);<\/pre>\n<p>&nbsp;<\/p>\n<h2>favicon\u8a2d\u5b9a<\/h2>\n<p>\u30fb\u521d\u56de\u306e\u307f<\/p>\n<p><span style=\"color: #0000ff;\">header.php\u3068wp-login.php<\/span><br \/>\n\u306ehead\u30bf\u30b0\u306e\u4e2d\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0<\/p>\n<pre class=\"lang:php decode:true\">&lt;link rel=\"SHORTCUT ICON\" href=&lt;?php echo get_template_directory_uri(); ?&gt;\/favicon.ico \/&gt;<\/pre>\n<p><span style=\"color: #0000ff;\">\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\uff1e\u5916\u89b3\uff1e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\uff1e\u30b5\u30a4\u30c8\u57fa\u672c\u60c5\u5831\uff1e\u30b5\u30a4\u30c8\u30a2\u30a4\u30b3\u30f3<\/span><br \/>\n\u304b\u3089\u3082\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<h2>\u30d1\u30fc\u30df\u30b7\u30e7\u30f3\u5909\u66f4<\/h2>\n<p>\u30fb\u521d\u56de\u306e\u307f<\/p>\n<p><span style=\"color: #0000ff;\">find . -type d | xargs chmod 705<\/span><br \/>\n<span style=\"color: #0000ff;\">find . -type f | xargs chmod 604<br \/>\nfind . -name &#8220;wp-config.php&#8221; | xargs chmod 600<\/span><\/p>\n<h2>IP\u30a2\u30c9\u30ec\u30b9\u3067\u30ed\u30b0\u30a4\u30f3\u3092\u5f3e\u304f<\/h2>\n<p>\u30fb\u521d\u56de\u306e\u307f+IP\u30a2\u30c9\u30ec\u30b9\u5909\u66f4\u6642<\/p>\n<p><span style=\"color: #333333;\">wp-login.php<\/span>\u306e\u3042\u308b\u968e\u5c64\u306e.htaccess\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18<\/p>\n<pre class=\"lang:default decode:true\">&lt;files wp-login.php&gt;\r\norder deny,allow\r\ndeny from all\r\nallow from xxx.xxx.xxx.xxx\r\n&lt;\/files&gt;<\/pre>\n<p>wp-admin\u306e\u76f4\u4e0b\u306b\u3042\u308b.htaccess\u306b\u3082\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3002<\/p>\n<pre class=\"lang:default decode:true\">order deny,allow\r\ndeny from all\r\nallow from xxx.xxx.xxx.xxx<\/pre>\n<p>\u203border\u306b\u3066allow\u3068deny\u5404\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u3069\u3061\u3089\u3092\u5148\u306b\u8a55\u4fa1\u3059\u308b\u304b\u9806\u756a\u3092\u6307\u5b9a\u3059\u308b\u3002<br \/>\norder allow,deny\uff1a\u8a31\u53ef\u2192\u62d2\u5426<br \/>\norder deny,allow\uff1a\u62d2\u5426\u2192\u8a31\u53ef<\/p>\n<p>\u30fb2.4\u4ee5\u964d<\/p>\n<p>wp-login.php\u306e\u968e\u5c64<\/p>\n<pre class=\"lang:default decode:true\">&lt;files wp-login.php&gt;\r\nrequire all denied\r\nrequire ip xxx.xxx.xxx.xxx\r\n&lt;\/files&gt;\r\n\r\n&lt;files xmlrpc.php&gt;\r\nrequire all denied\r\n&lt;\/files&gt;<\/pre>\n<p>wp-admin\u306e\u76f4\u4e0b<\/p>\n<pre class=\"lang:default decode:true\">require all denied\r\nrequire ip xxx.xxx.xxx.xxx<\/pre>\n<h2>(\u672a\u4f7f\u7528)\u30a6\u30a3\u30b8\u30c3\u30c8\u306e\u6700\u65b0\u306e\u6295\u7a3f\u3092\u66f4\u65b0\u9806\u306b\u5909\u66f4<\/h2>\n<p><span style=\"color: #0000ff;\">wp-includes\/widgets\/class-wp-widget-recent-posts.php<\/span><br \/>\n\u306e\u4e2d\u306b\u3042\u308b<br \/>\n<span style=\"color: #0000ff;\">$r = new WP_Query()<\/span><br \/>\n\u306e\u4e2d\u306b\u6761\u4ef6\u306e\u9023\u60f3\u914d\u5217\u304c\u3042\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3059\u308b\u3002<br \/>\n<span style=\"color: #0000ff;\">&#8216;orderby&#8217;=&gt;&#8217;modified&#8217;<\/span><\/p>\n<p>\u3053\u308c\u3067\u66f4\u65b0\u9806\u306b\u306a\u308b\u3002<br \/>\nWordpress\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306b\u6d88\u3048\u308b\u3068\u304d\u304c\u3042\u308b\u3002<\/p>\n<h2>(\u672a\u4f7f\u7528)\u66f4\u65b0\u65e5\u3092\u8868\u793a<\/h2>\n<p><span style=\"color: #0000ff;\">wp-includes\/widgets\/class-wp-widget-recent-posts.php<\/span><br \/>\n\u306e\u4e2d\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4<\/p>\n<pre class=\"lang:php decode:true\">&lt;span class=\"post-date\"&gt;&lt;br&gt;\r\n\u6295\u7a3f\uff1a&lt;?php echo get_the_date('Y-m-d',$recent_post-&gt;ID); ?&gt; \/\r\n\u66f4\u65b0\uff1a&lt;?php echo get_the_modified_date('Y-m-d',$recent_post-&gt;ID); ?&gt;\r\n&lt;\/span&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h2>(\u672a\u4f7f\u7528)\u30ca\u30d3\u30e1\u30cb\u30e5\u30fc\u975e\u8868\u793a<\/h2>\n<p><span style=\"color: #0000ff;\">wp-content\/themes\/xxx\/header.php<\/span><br \/>\n\u306e\u4e2d\u306b\u3042\u308b<br \/>\n<span style=\"color: #0000ff;\">wp_nav_menu()<\/span><br \/>\n\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8<\/p>\n<h2>(\u672a\u4f7f\u7528)\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304b\u3089\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u975e\u8868\u793a<\/h2>\n<p>functions.php\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<\/p>\n<pre class=\"lang:php decode:true\">function ExcCat( $query ) {\r\nif ( $query-&gt;is_home()) {\r\n$query-&gt;set( 'cat', '-99' );\r\n}\r\n}\r\nadd_action( 'pre_get_posts', 'ExcCat' );<\/pre>\n<p>&nbsp;<\/p>\n<h2>(\u672a\u4f7f\u7528)Google\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u8ffd\u52a0<\/h2>\n<p>\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u30c6\u30ad\u30b9\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;form action=\"http:\/\/www.google.com\/search\"&gt;\r\n&lt;input type=\"hidden\" name=\"hl\" value=\"ja\" \/&gt;\r\n&lt;input type=\"hidden\" value=\"http:\/\/okamurax.com\/\" name=\"as_sitesearch\" \/&gt;\r\n&lt;input type=\"text\" name=\"q\" size=\"25\" \/&gt;\r\n&lt;input type=\"submit\" name=\"btnG\" value=\"\u691c\u7d22\" \/&gt;\r\n&lt;\/form&gt;<\/pre>\n<h2>(\u672a\u4f7f\u7528)\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3067\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/h2>\n<pre class=\"lang:php decode:true\">&lt;?php\r\n\r\nadd_action('wp_head', 'login_state', 1);\r\n\r\nfunction login_state() {\r\n\tif (!is_user_logged_in()) wp_redirect('\/wp-login.php');\r\n}<\/pre>\n<h2>(\u672a\u4f7f\u7528)\u81ea\u4f5c\u30bf\u30b0\u30af\u30e9\u30a6\u30c9<\/h2>\n<p>\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u5165\u308c\u308c\u3070\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"lang:php decode:true\">function count_tag(){\r\n  echo '&lt;ul&gt;';\r\n  $tags = get_tags();\r\n  foreach($tags as $tag){\r\n    echo '&lt;li&gt;';\r\n    echo '&lt;a href=\"' . get_tag_link($tag-&gt;term_id) . '\"&gt;' . $tag-&gt;name . '[' . $tag-&gt;count . ']&lt;\/a&gt;';\r\n    echo '&lt;\/li&gt;';\r\n  }\r\n  echo '&lt;\/ul&gt;';\r\n}\r\n\r\nadd_shortcode('count_tag', 'count_tag');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8a18\u4e8b\u4e00\u89a7 \u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002 WordPress \u8a18\u4e8b\u4e00\u89a7\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30bf\u30eb\u691c\u7d22 \u30bf\u30a4\u30c8\u30eb\u8868\u793a(\u6295\u7a3f)\u3092\u6d88\u3059 \u30fb\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u3001\u518d\u5b9f\u884c\u3002 wp-content\/themes\/xxx\/index.php \u306e\u4e2d &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=642\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;WordPress \u30ab\u30b9\u30bf\u30de\u30a4\u30ba(\u66f4\u65b0\u542b\u3080)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[85],"class_list":["post-642","post","type-post","status-publish","format-standard","hentry","category-1","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=642"}],"version-history":[{"count":80,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":7116,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/642\/revisions\/7116"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}