Skip to content

Instantly share code, notes, and snippets.

View manhleo93's full-sized avatar

Đức Mạnh manhleo93

View GitHub Profile
@manhleo93
manhleo93 / functions.php
Created January 20, 2018 09:10
Loại bỏ Query String trong WordPress
# Loại bỏ Query String trong WordPress
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
@manhleo93
manhleo93 / .htaccess
Created January 20, 2018 07:17
Bật tính năng nén Gzip .htaccess wordpress
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
http://ttvnol.com
http://diendandulich.net.vn
https://www.webtretho.com
https://forum.vietnam.biz
https://cungbandulich.com
@manhleo93
manhleo93 / functions.php
Created January 15, 2018 09:52
Tắt tự động cập nhật theme và plugin wordpress
# Tắt tính năng tự động cập nhật Plugin WordPress
add_filter( 'auto_update_plugin', '__return_false' );
# Tắt tính năng tự động cập nhật Theme WordPress
add_filter( 'auto_update_theme', '__return_false' );
define( 'WP_AUTO_UPDATE_CORE', false );
@manhleo93
manhleo93 / functions.php
Last active January 15, 2018 09:05
Tắt thông báo cập nhật wordpress
# Tắt thông báo cập nhật Plugin Wordpress
function disable_plugin_updates( $value ) {
unset( $value->response['akismet/akismet.php'] );
unset( $value->response['thrive-comments/thrive-comments.php'] );
unset( $value->response['monarch/monarch.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
@manhleo93
manhleo93 / Vũ đức Mạnh
Last active January 2, 2018 09:44
100 mạng xã hội đi backlink
Đi backlink theo các chỉ số sau:
User
Tên:
Sn:
Địa chỉ:
<a href="đường dẫn liên kết banner"><img src="Tiêu đề banner" title="Tiêu đề banner"></a>
@manhleo93
manhleo93 / Social Media
Created December 13, 2017 03:33
Danh sách 100 mạng xã hội cho phép đặt link
# Danh sách 100 mạng xã hội cho phép đi link profire trong phần chỉnh sửa cá nhân
Tạo tài khoản rồi vào chỉnh sửa có phần home page để link vào đó lưu ý chỉ để link đến trang chủ cần seo.
https://cpanel.com/
https://developers.google.com/my-business/?hl=vi
https://www.facebook.com/
https://www.youtube.com/
https://en.wordpress.com/
https://plus.google.com/
https://twitter.com/
@manhleo93
manhleo93 / robots.txt
Created December 12, 2017 12:14
File robots.txt chuẩn cho wordpress | https://sampres.com/tao-robots-txt-wordpress/
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Allow: /wp-admin/images/*
Sitemap: https://sampres.com/sitemap_index.xml