Skip to content

Instantly share code, notes, and snippets.

View gocchiase's full-sized avatar

Góc chia sẻ gocchiase

View GitHub Profile
@gocchiase
gocchiase / Hide WP version WP.txt
Created May 24, 2019 14:07
Hide WP version WP
/* Hide WP version strings from scripts and styles
* @return {string} $src
* @filter script_loader_src
* @filter style_loader_src
*/
function remove_wp_version_strings( $src ) {
global $wp_version;
parse_str(parse_url($src, PHP_URL_QUERY), $query);
if ( !empty($query['ver']) && $query['ver'] === $wp_version ) {
$src = remove_query_arg('ver', $src);
@gocchiase
gocchiase / Gocchiase
Last active May 22, 2019 03:53
Gocchiase
Github một trong những trang web cho chúng ta lưu trữ
các đoạn code, text của mình trên đó
và có thể chia sẻ cho người các có thể xem được.
@gocchiase
gocchiase / .htaccess
Created May 18, 2019 06:43
Bảo vệ thư mục wp-content
Order deny,allow
Deny from all
<Files ~ ".(xml|css|jpe?g|png|gif|js)$">
Allow from all
</Files>
@gocchiase
gocchiase / robots.txt
Last active May 18, 2019 06:41
Robots - Chặn index web
User-agent: *
Disallow: /