Wordpress

Static Class Initializer in Wordpess

Static class
Make functions as static makes them call without an instantiation of the class.

class Register
{
static function init() {
add_shortcode('RegisterForm', __CLASS__ . '::registerForm');
add_shortcode('RegisterForm2', __CLASS__ . '::registerForm2');
add_filter( 'the_content', 'add_bottom_content' );

}
static function registerForm(){
// Add your code
}

static function registerForm2(){
// Add your code
}

static function add_bottom_content( $content ) {
$content .= "Your Reviews On ".get_the_title().", Please!"";
return $content;
}

}

Register::init();