frontend = new Frontend(); // Preserve the historical global and class name so themes and snippets that reference // $toc_plus or the TOC_Plus class keep working. $GLOBALS['toc_plus'] = $this->frontend; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound if ( ! class_exists( 'TOC_Plus' ) ) { class_alias( Frontend::class, 'TOC_Plus' ); } } }