file path mappings) * 3. Find this file's unique hash ID in the map * 4. Remove the hash from the loaded files registry to allow subsequent executions */ $vendor_dir = dirname( __DIR__, 2 ); $autoload_files_path = $vendor_dir . '/composer/autoload_files.php'; if ( file_exists( $autoload_files_path ) ) { $autoload_files_map = require $autoload_files_path; $autoload_files_id = array_search( __FILE__, $autoload_files_map, true ); if ( false !== $autoload_files_id && isset( $__composer_autoload_files[ $autoload_files_id ] ) ) { unset( $__composer_autoload_files[ $autoload_files_id ] ); } } $pattern = '#/([^/]+)/vendor/elementor/#'; if ( preg_match( $pattern, __DIR__, $matches ) ) { $elementor_mcp_composer_versions[ $matches[1] ] = '1.0.17'; } if ( ! function_exists( 'elementor_mcp_composer_register_1_dot_0_dot_17' ) && function_exists( 'add_action' ) ) { if ( ! class_exists( '\Elementor\MCP\Composer\Versions', false ) ) { require_once __DIR__ . '/src/Versions.php'; add_action( 'plugins_loaded', [ \Elementor\MCP\Composer\Versions::class, 'initialize_latest_version' ], -15, 0 ); } add_action( 'plugins_loaded', 'elementor_mcp_composer_register_1_dot_0_dot_17', -20, 0 ); /** * Register this package version with the version arbitrator. * * @return void */ function elementor_mcp_composer_register_1_dot_0_dot_17() { $versions = \Elementor\MCP\Composer\Versions::instance(); $versions->register( '1.0.17', 'elementor_mcp_composer_initialize_1_dot_0_dot_17' ); } /** * Initialize this package version when selected as the latest. * * @return void */ function elementor_mcp_composer_initialize_1_dot_0_dot_17() { \Elementor\MCP\Composer\Loader::init(); } }