getPrefixesPsr4() as $namespace => $paths ) { // Remove any non-Code_Snippets namespace that has a corresponding prefixed version. if ( false === strpos( $namespace, $vendor_prefix ) ) { if ( isset( $prefixes[ $vendor_prefix . $namespace ] ) ) { $autoloader->setPsr4( $namespace, [] ); } } } } /** * Retrieve the instance of the main plugin class. * * @return Plugin * @since 2.6.0 */ function code_snippets(): Plugin { static $plugin; if ( is_null( $plugin ) ) { $plugin = new Plugin(); } return $plugin; } code_snippets()->load_plugin();