{"id":8859,"date":"2025-06-15T08:37:03","date_gmt":"2025-06-15T06:37:03","guid":{"rendered":"https:\/\/www.axew3.com\/w3\/?p=8859"},"modified":"2026-11-08T10:03:41","modified_gmt":"2026-11-08T09:03:41","slug":"wordpress-phpbb-custom-code-file","status":"publish","type":"post","link":"https:\/\/www.axew3.com\/w3\/2025\/06\/wordpress-phpbb-custom-code-file\/","title":{"rendered":"WordPress phpBB custom code files"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">-See the easy how-to <\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:clamp(0.929rem, 0.929rem + ((1vw - 0.2rem) * 0.785), 1.4rem);\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">integrate the <strong>Simple Membership<\/strong><\/mark> plugin more below<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>The custom files<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/wp-content\/plugins\/wp-w3all-phpbb-integration\/common\/<strong>custom_functions.php<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">and the <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/wp-content\/plugins\/wp-w3all-phpbb-integration\/common\/<strong>custom_login.php<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">can be used to fire hooks, declare functions, or define variables of any kind. This ensures that other plugins remain fully compatible and work seamlessly alongside the integration plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the file <em><strong>custom_functions.php<\/strong><\/em> or <em><strong>custom_login.php<\/strong><\/em> exists into the custom <strong>wp-w3all-custom<\/strong> created folder they will be parsed as part of the <strong>wp_w3all.php<\/strong> file (where the files are included).<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">To use, if not already existent, create the folder<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\/wp-content\/plugins\/<strong>wp-w3all-custom<\/strong>\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">copy <em>wp-content\/plugins\/wp-w3all-phpbb-integration\/common\/<strong>custom_functions.php<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">and\/or <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/wp-content\/plugins\/wp-w3all-phpbb-integration\/common\/<strong>custom_login.php<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">into the \/wp-content\/plugins\/<strong>wp-w3all-custom<\/strong>\/ created folder<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">so you&#8217;ll have<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\"><em>\/wp-content\/plugins\/wp-w3all-custom\/<strong>custom_functions.php<\/strong><\/em><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">and\/or <\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><em>\/wp-content\/plugins\/wp-w3all-custom\/<strong>custom_login.php<\/strong><\/em><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Open the files with a text editor, they contains simple examples that show how they can be used for any purpose.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\">Note<\/mark> that the main w3all integration code is included\/fire on <strong>init<\/strong> action with <strong>Priority 3<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading has-background\" style=\"background-color:#f1f1f3\"><code>add_action( 'init', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_init' ), 3 );<\/code><\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">this is declared two times (wp-admin and front end) on file <em>wp_w3all.php<\/em>.<\/h1>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\"><strong>Simple Membership<\/strong> plugin integration<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since 3.2.0&gt; to correctly integrate the <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-cyan-1-color\"><strong>Simple Membership<\/strong><\/mark> plugin and fix login\/out issues, just copy both<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>custom_functions.php<\/strong><\/em> and <em><strong>custom_login.php<\/strong><\/em> files as they are into the custom folder<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\/wp-content\/plugins\/<strong>wp-w3all-custom\/<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Self-explanatory, simple, working example code is also provided within those same files for other plugins.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open the files with a text editor and edit them to fit your requirements.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>NOTE:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">the <code>$avoid_w3all_password_check<\/code> global var can be used to avoid the<strong> WordPress check password<\/strong> that&#8217;s fired by the integration plugin. Set to 1 to use it.<\/p>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#f1f1f3\"><code>global $avoid_w3all_password_check; <\/code># maybe required<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>$avoid_w3all_password_check = 1;<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>-See the easy how-to integrate the Simple Membership plugin more below The custom files \/wp-content\/plugins\/wp-w3all-phpbb-integration\/common\/custom_functions.php and the \/wp-content\/plugins\/wp-w3all-phpbb-integration\/common\/custom_login.php can be used to fire hooks, declare functions, or define variables of any kind. This ensures that other plugins remain fully compatible and work seamlessly alongside the integration plugin. If the file custom_functions.php or custom_login.php exists into [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-8859","post","type-post","status-publish","format-standard","hentry","category-wordpress-phpbb-integration"],"_links":{"self":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/8859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/comments?post=8859"}],"version-history":[{"count":2,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/8859\/revisions"}],"predecessor-version":[{"id":11569,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/8859\/revisions\/11569"}],"wp:attachment":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/media?parent=8859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/categories?post=8859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/tags?post=8859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}