static function init() { if (!self::$wpdb) { global $wpdb; self::$wpdb = $wpdb; self::$video_table = $wpdb->prefix . self::$video_table; self::$category_table = $wpdb->prefix . self::$category_table; } }