getPrefixesPsr4(); $our_prefix = 'Code_Snippets\\Vendor\\'; foreach ( $prefixes as $namespace => $paths ) { // Remove any non-Code_Snippets namespace that has a corresponding prefixed version if ( strpos( $namespace, $our_prefix ) === false ) { $prefixed_namespace = $our_prefix . $namespace; if ( isset( $prefixes[ $prefixed_namespace ] ) ) { $code_snippets_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( PLUGIN_VERSION, PLUGIN_FILE ); } return $plugin; } code_snippets()->load_plugin();