
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: class-yith-wc-subscription-autoloader.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Autoloader class. This is used to decrease memory consumption
 *
 * @since   2.0.0
 * @author  YITH
 * @package YITH\Subscription
 */

defined( &#039;YITH_YWSBS_INIT&#039; ) || exit; // Exit if accessed directly.

if ( ! class_exists( &#039;YITH_WC_Subscription_Autoloader&#039; ) ) {
	/**
	 * Class YITH_WC_Subscription_Autoloader
	 *
	 * @since 2.0.0
	 */
	class YITH_WC_Subscription_Autoloader {


		/**
		 * Constructor
		 *
		 * @since 2.0.0
		 */
		public function __construct() {
			if ( function_exists( &#039;__autoload&#039; ) ) {
				spl_autoload_register( &#039;__autoload&#039; );
			}

			spl_autoload_register( array( $this, &#039;autoload&#039; ) );
		}

		/**
		 * Get an array of registered paths
		 *
		 * @since  3.0.0
		 * @return array
		 */
		protected function get_registered_paths() {
			return apply_filters( &#039;yith_ywsbs_autoload_registered_path&#039;, array() );
		}

		/**
		 * Autoload callback
		 *
		 * @since  2.0.0
		 * @param string $class Load the class.
		 */
		public function autoload( $class ) {

			$path            = YITH_YWSBS_INC;
			$class           = str_replace( &#039;_&#039;, &#039;-&#039;, strtolower( $class ) );
			$file            = &quot;class-{$class}.php&quot;;
			$admin_files     = array(
				&#039;class-ywsbs-product-post-type-admin.php&#039;,
				&#039;class-ywsbs-subscription-post-type-admin.php&#039;,
				&#039;class-ywsbs-subscription-list-table.php&#039;,
			);
			$registered_path = $this-&gt;get_registered_paths();

			// Search first for registered path.
			if ( in_array( $file, $admin_files, true ) ) {
				$path .= &#039;admin/&#039;;
			} elseif ( array_key_exists( $file, $registered_path ) ) {
				$path = $registered_path[ $file ];
			} else {
				// Search now dynamically.
				if ( false !== strpos( $class, &#039;module&#039; ) ) {
					$path .= &#039;modules/&#039;;
				} elseif ( false !== strpos( $class, &#039;trait&#039; ) ) {
					$file  = &#039;trait-&#039; . str_replace( &#039;-trait&#039;, &#039;&#039;, $class ) . &#039;.php&#039;;
					$path .= &#039;traits/&#039;;
				} elseif ( false !== strpos( $class, &#039;legacy&#039; ) ) {
					$file  = &#039;abstract-&#039; . str_replace( &#039;_&#039;, &#039;-&#039;, $class ) . &#039;.php&#039;;
					$path .= &#039;legacy/&#039;;
				}
			}

			if ( file_exists( $path . $file ) &amp;&amp; is_readable( $path . $file ) ) {
				include_once $path . $file;
			}
		}
	}
}

new YITH_WC_Subscription_Autoloader();
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
