Install::instance()


Source

File: classes/Install.php

16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
public static function instance() {
    static $instance = null;
 
    // Only run these methods if they haven't been run previously
    if ( null === $instance ) {
        $instance = new self();
        $instance->create_databases();
        $instance->create_pages();
        $instance->roles_and_permissions();
        $instance->set_default_options();
    }
 
    // Always return the instance
    return $instance;
}