private function __construct() { // init checkboxes require_once MC4WP_PLUGIN_DIR . 'includes/class-checkboxes.php'; MC4WP_Checkboxes::init(); // init forms require_once MC4WP_PLUGIN_DIR . 'includes/class-forms.php'; MC4WP_Forms::init(); // init logging class require_once MC4WP_PLUGIN_DIR . 'includes/class-log.php'; MC4WP_Log::init(); // init widget add_action('widgets_init', array($this, 'register_widget')); // load css add_action('wp_enqueue_scripts', array($this, 'load_stylesheets'), 90); add_action('login_enqueue_scripts', array($this, 'load_stylesheets')); }
public static function init() { if (!self::$instance) { self::$instance = new self(); } }
/** * Echoes a sign-up checkbox. * * @deprecated 1.3.1 Use mc4wp_checkbox() instead * @see mc4wp_checkbox() */ function mc4wp_show_checkbox() { MC4WP_Checkboxes::instance()->output_checkbox(); }