{"id":1625,"date":"2016-07-31T17:04:22","date_gmt":"2016-07-31T08:04:22","guid":{"rendered":"http:\/\/www.uniqware.net\/?p=1625"},"modified":"2016-07-31T17:04:22","modified_gmt":"2016-07-31T08:04:22","slug":"buddypress%e3%81%ae%e3%83%97%e3%83%a9%e3%82%a4%e3%83%99%e3%83%bc%e3%83%88%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8%e3%81%8b%e3%82%89%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%80%81%e9%9b%bb%e8%a9%b1","status":"publish","type":"post","link":"https:\/\/www.uniqware.net\/it\/archives\/1625","title":{"rendered":"BuddyPress\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u30a2\u30c9\u30ec\u30b9\u3001\u96fb\u8a71\u756a\u53f7\u3092\u524a\u9664\u3059\u308b"},"content":{"rendered":"<p>WordPress + BuddyPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u7d44\u5408\u305b\u3092\u4f7f\u3046\u3068SNS\u30b5\u30a4\u30c8\u304c\u5bb9\u6613\u306b\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002\u73fe\u5728\u9032\u884c\u4e2d\u306e\u30de\u30c3\u30c1\u30f3\u30b0\u30d3\u30b8\u30cd\u30b9\u6848\u4ef6\u3067\u306f\u3001\u4eba\u540c\u58eb\u3092\u5f15\u304d\u5408\u308f\u305b\u308b\u76ee\u7684\u3067BuddyPress\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u6a5f\u80fd\uff08PM\uff09\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u4e00\u3064\u554f\u984c\u70b9\u304c\u6d6e\u4e0a\u3057\u307e\u3057\u305f\u3002\u30b5\u30a4\u30c8\u4e0a\u3067\u5951\u7d04\u304c\u6210\u7acb\u3059\u308b\u4ee5\u524d\u306bPM\u3067\u30a2\u30c9\u30ec\u30b9\u3084\u96fb\u8a71\u756a\u53f7\u3092\u4ea4\u63db\u3057\u3066\u3057\u307e\u3046\u3068\u76f4\u63a5\u5951\u7d04\u306e\u53ef\u80fd\u6027\u304c\u3042\u308a\u30d3\u30b8\u30cd\u30b9\u304c\u6210\u7acb\u3057\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u4eca\u56de\u306fPM\u304b\u3089\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u96fb\u8a71\u756a\u53f7\u3092\u81ea\u52d5\u7684\u306b\u691c\u51fa\u3057\u3066\u524a\u9664\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n<p>\u53c2\u8003\u306b\u3057\u305f\u8a18\u4e8b\u306f<a href=\"https:\/\/buddypress.org\/support\/topic\/how-to-disable-html-in-buddypress-private-message\/\" target=\"_blank\" rel=\"noopener\">How to disable HTML in BuddyPress private message<\/a>\u3068<a href=\"https:\/\/buddypress.org\/support\/topic\/filter-or-stop-email-address-from-private-message\/\" target=\"_blank\" rel=\"noopener\">Filter or stop email address from private message<\/a>\u3067\u3059\u3002<!--more-->\n\u540c\u69d8\u306aTips\u306f\u591a\u6570\u3042\u308a\u307e\u3059\u304c\u65e5\u672c\u8a9e\u306e\u60c5\u5831\u304c\u5c11\u306a\u3044\u3067\u3059\u3002\u51e6\u7406\u5bfe\u8c61\u306f\u3001\u2460PM\u3068\u3057\u3066\u9001\u4fe1\u3055\u308c\u308bE\u30e1\u30fc\u30eb\u3001\u2461\u30b5\u30a4\u30c8\u4e0a\u306b\u8868\u793a\u3055\u308c\u308b\u30b9\u30ec\u30c3\u30c9\u306e\uff12\u3064\u3067\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u5bfe\u51e6\u7528\u306b\u4ee5\u4e0b\u306e\uff12\u3064\u306e\u30b3\u30fc\u30c9\u3092\u7528\u610f\u3057\u3001\u30c6\u30fc\u30de\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306efunctions.php\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n<pre class=\"brush: css; first-line: 1; highlight: [159,160,161,162,163,164,165,166,167]; html-script: true; title: functions.php; notranslate\" title=\"functions.php\">\n\/* remove phone number &amp; email address from private message emails *\/\nfunction my_message_filter($message){\n\t$message = wp_filter_nohtml_kses( $message );\n\t$replacement = &quot;\\n[Warning: Phone number removed]&quot;;\n\t$message = preg_replace( &quot;\/[+]?([\\d]{0,3})?[\\(\\.\\-\\s]?([\\d]{3})[\\)\\.\\-\\s]*([\\d]{3})[\\.\\-\\s]?([\\d]{4})\/&quot;, $replacement, $message);\n\n \t$replacement = &quot;[Warning: Email address removed]&quot;;\n\t$message = preg_replace( &quot;\/[^@\\s]*@[^@\\s]*\\.[^@\\s]*\/&quot;, $replacement, $message); \t\n\treturn $message;\n}\nadd_filter('messages_message_content_before_save', 'my_message_filter');\nadd_filter('messages_message_subject_before_save', 'my_message_filter');\n<\/pre>\n\n<pre class=\"brush: css; first-line: 14; highlight: [159,160,161,162,163,164,165,166,167]; html-script: true; title: functions.php; notranslate\" title=\"functions.php\">\n\/* remove phone number &amp; email address from private message threads *\/\nfunction my_thread_filter($message){\n\t$lines = explode(&quot;\\n&quot;, $message);\n\t$message = &quot;&quot;;\n\tforeach ($lines as $line) {\n\t\t$replacement = &quot;\\n[Warning: Phone number removed]&quot;;\n\t\t$line = preg_replace( &quot;\/[+]?([\\d]{0,3})?[\\(\\.\\-\\s]?([\\d]{3})[\\)\\.\\-\\s]*([\\d]{3})[\\.\\-\\s]?([\\d]{4})\/&quot;, $replacement, $line);\n \t\t$replacement = &quot;[Warning: Email address removed]&quot;;\n\t\t$line = preg_replace( &quot;\/[^@\\s]*@[^@\\s]*\\.[^@\\s]*\/&quot;, $replacement, $line);\n\t\t$message .= $line;\n\t}\n\treturn $message;\n}\nadd_action('bp_get_the_thread_message_content', 'my_thread_filter');\n<\/pre>\n\n<p>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u96fb\u8a71\u756a\u53f7\u3092\u691c\u51fa\u3059\u308b\u305f\u3081\u306e\u6b63\u898f\u8868\u73fe\u306f\u6700\u9069\u89e3\u3067\u306f\u306a\u3044\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u304c\u4e00\u5fdc\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u691c\u51fa\u3057\u305f\u5834\u5408\u306b\u7f6e\u63db\u3059\u308b\u6587\u5b57\u5217\uff08$replacement\uff09\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"WordPress + BuddyPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u7d44\u5408\u305b\u3092\u4f7f\u3046\u3068SNS\u30b5\u30a4 &hellip; <a class=\"more-link\" href=\"https:\/\/www.uniqware.net\/it\/archives\/1625\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[32,31,6],"acf":[],"_links":{"self":[{"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/posts\/1625"}],"collection":[{"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/comments?post=1625"}],"version-history":[{"count":0,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/posts\/1625\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/media?parent=1625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/categories?post=1625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/tags?post=1625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}