Chặn cập nhật Plugin & theme wordpress

viết vào file function

function disable_update_notifications()
{
global $wp_version;
return (object) array(
‘last_checked’=> time(),
‘version_checked’=> $wp_version
);
}
add_filter(‘pre_site_transient_update_core’,’disable_update_notifications’);
add_filter(‘pre_site_transient_update_plugins’,’disable_update_notifications’);
add_filter(‘pre_site_transient_update_themes’,’disable_update_notifications’);

 

Tạo hiệu ứng load

<link rel=”stylesheet” href=”http://localhost:8080/hoaai/wp-content/themes/hoaiai/css/normalize.css”>
<link rel=”stylesheet” href=”http://localhost:8080/hoaai/wp-content/themes/hoaiai/css/main.css”>
<script src=”http://localhost:8080/hoaai/wp-content/themes/hoaiai/js/vendor/modernizr-2.6.2.min.js”></script>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<script src=”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script>
<script>window.jQuery || document.write(‘<script src=”http://localhost:8080/hoaai/wp-content/themes/hoaiai/js/vendor/jquery-1.9.1.min.js”><\/script>’)</script>
<script src=”http://localhost:8080/hoaai/wp-content/themes/hoaiai/js/main.js”></script>
<div id=”loader-wrapper”>
<div id=”loader”></div>
<div class=”loader-section section-left”></div>
            <div class=”loader-section section-right”></div>
</div>