Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hooks & Filters Docu

I think you started with looking at the wrong plugin.

I’ve got the code here if you want it, if you want a challenge, then *don’t* read on…:

<?php
/*
Plugin Name: Disable registration
Plugin URI:
Description: Disables registration
Author: Sam Bauers
Version: 0.0.1
Author URI:
*/

add_action('bb_init', 'disable_registration');

function disable_registration() {
global $bb;
if ($_SERVER['PHP_SELF'] == $bb->path . 'register.php') {
bb_die(__('Registration is temporarily disabled for this forum.'));
}
}
?>

Make a new file from this code and drop it into your plugins folder. You may need to add some values in the header part to allow it to be registered in the admin area.

Skip to toolbar