wp-security

<?php // remove unnecessary header information function remove_header_info() { remove_action('wp_head', 'feed_links_extra', 3); remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'start_post_rel_link'); remove_action('wp_head', 'index_rel_link'); remove_action('wp_head', 'parent_post_rel_link', 10, 0); remove_action('wp_head', 'adjacent_posts_rel_link_wp_head',10,0); // for WordPress >= 3.0 } add_action('init', 'remove_header_info'); // smart jquery inclusion if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false); wp_enqueue_script('jquery'); } // remove wp version meta tag … Continue reading wp-security

jquery ajax form

jQuery(document).ready(function() { jQuery(".submit_customer_btn").click(function() { /**************** Register ***************************/ jQuery("#notic_add_customer.alert").hide(); //on focus jQuery("#add_customer_form .isrequired, #add_customer_form .isrequired").focus(function(){ jQuery(this).removeClass('error'); }); //on blur jQuery("#add_customer_form .isrequired, #add_customer_form .isrequired").blur(function() { if(jQuery(this).val().trim() == '') { jQuery(this).addClass('error'); } else { jQuery(this).removeClass('error'); } }); if(jQuery("#firstname").val().trim() == '' || jQuery("#lastname").val().trim() == '' || jQuery("#mobile").val().trim() == '' || jQuery("#email").val().trim() == '' || jQuery("#streetaddress1").val().trim() == '' || jQuery("#zip").val().trim() … Continue reading jquery ajax form