axew3.com

WordPress phpBB custom code files

—

by

-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 the custom wp-w3all-custom created folder they will be parsed as part of the wp_w3all.php file (where the files are included).

To use, if not already existent, create the folder

/wp-content/plugins/wp-w3all-custom/

copy wp-content/plugins/wp-w3all-phpbb-integration/common/custom_functions.php

and/or

/wp-content/plugins/wp-w3all-phpbb-integration/common/custom_login.php

into the /wp-content/plugins/wp-w3all-custom/ created folder

so you’ll have

/wp-content/plugins/wp-w3all-custom/custom_functions.php

and/or

/wp-content/plugins/wp-w3all-custom/custom_login.php

Open the files with a text editor, they contains simple examples that show how they can be used for any purpose.

Note that the main w3all integration code is included/fire on init action with Priority 3

add_action( 'init', array( 'WP_w3all_phpbb', 'wp_w3all_phpbb_init' ), 3 );

this is declared two times (wp-admin and front end) on file wp_w3all.php.

Simple Membership plugin integration

Since 3.2.0> to correctly integrate the Simple Membership plugin and fix login/out issues, just copy both

custom_functions.php and custom_login.php files as they are into the custom folder

/wp-content/plugins/wp-w3all-custom/

Self-explanatory, simple, working example code is also provided within those same files for other plugins.

Open the files with a text editor and edit them to fit your requirements.

NOTE:

the $avoid_w3all_password_check global var can be used to avoid the WordPress check password that’s fired by the integration plugin. Set to 1 to use it.

global $avoid_w3all_password_check; # maybe required

$avoid_w3all_password_check = 1;