{"id":1792,"date":"2019-03-04T00:11:33","date_gmt":"2019-03-03T22:11:33","guid":{"rendered":"https:\/\/tulipeo-tulipemedia.pf28.wpserveur.net\/?p=1792"},"modified":"2025-05-15T17:59:43","modified_gmt":"2025-05-15T15:59:43","slug":"buddypress-%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4-xprofile-%e6%96%87%e6%9c%ac%e5%8c%ba%e5%9f%9f%e4%b8%8a%e7%9a%84%e5%af%8c%e6%96%87%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/tulipemedia.com\/zh\/buddypress-%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4-xprofile-%e6%96%87%e6%9c%ac%e5%8c%ba%e5%9f%9f%e4%b8%8a%e7%9a%84%e5%af%8c%e6%96%87%e6%9c%ac\/","title":{"rendered":"BuddyPress\uff1a\u5982\u4f55\u5220\u9664 xprofile \u6587\u672c\u533a\u57df\u4e0a\u7684\u5bcc\u6587\u672c"},"content":{"rendered":"<p>Here is a little trick for BuddyPress to remove the rich text functionnalities of the editor from the xProfile text areas, like bio field for example. Add this custom code to bp-custom.php to disable the rich text:<\/p>\n<p>[code]<\/p>\n<p>\/*&#8212;&#8212;&#8212;-*\/<br \/>\n\/* REMOVE rich text on xprofile text area<br \/>\n\/*&#8212;&#8212;&#8212;-*\/<br \/>\nfunction antipole_remove_rich_text( $field_id = null ) {<br \/>\nif ( ! $field_id ) {<br \/>\n$field_id = bp_get_the_profile_field_id( &lsquo;3&rsquo; );<br \/>\n}<\/p>\n<p>$field = xprofile_get_field( $field_id );<\/p>\n<p>if ( $field ) {<br \/>\n$enabled = false;<br \/>\n}<br \/>\n}<br \/>\nadd_filter( &lsquo;bp_xprofile_is_richtext_enabled_for_field&rsquo;, &lsquo;antipole_remove_rich_text&rsquo; );<\/p>\n<p>[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a little trick for BuddyPress to remove the rich text functionnalities of the editor from the xProfile text areas, like bio field for example. Add this custom code to bp-custom.php to disable the rich text: [code] \/*&#8212;&#8212;&#8212;-*\/ \/* REMOVE rich text on xprofile text area \/*&#8212;&#8212;&#8212;-*\/ function antipole_remove_rich_text( $field_id = null ) { [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":1502,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[164],"class_list":["post-1792","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-buddypress","tag-tips-wordpress"],"_links":{"self":[{"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/posts\/1792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/comments?post=1792"}],"version-history":[{"count":1,"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/posts\/1792\/revisions"}],"predecessor-version":[{"id":4204,"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/posts\/1792\/revisions\/4204"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/media?parent=1792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/categories?post=1792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tulipemedia.com\/zh\/wp-json\/wp\/v2\/tags?post=1792"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}