This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('autoptimize_filter_cache_getname', 'pushAOFiles'); | |
function pushAOFiles($in) { | |
$pushType = substr($in, strrpos($in, ".") + 1) === "js" ? "script" : "style"; | |
// Do not push CSS files if it is already inline. | |
if ($pushType == "style" && ((bool)get_option("autoptimize_css_inline", true))) return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Disable zxcvbn.min.js on WordPress loading | |
*/ | |
function deregister_or_dequeue_scripts() { | |
wp_dequeue_script('wc-password-strength-meter'); | |
} | |
add_action('wp_print_scripts', 'deregister_or_dequeue_scripts', 20); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function td_mobile_menu_toogle() { | |
jQuery('#td-top-mobile-toggle a, .td-mobile-close a').click(function(e) { | |
if (jQuery('body').hasClass('td-menu-mob-open-menu')) { | |
jQuery('body').removeClass('td-menu-mob-open-menu'); | |
} else { | |
jQuery('body').addClass('td-menu-mob-open-menu'); | |
} | |
e.preventDefault(); | |
}); | |
jQuery(document).find('#td-mobile-nav .menu-item-has-children').each(function(i) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Developed by Juno_okyo */ | |
/* Edited by tdtgit */ | |
// EDIT HERE | |
define('ACCESS_TOKEN', 'YOUR_ACCESS_TOKEN'); | |
// EDIT HERE | |
// ID thành viên sẽ bị bỏ qua khi quét |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#v=1.0 | |
SERVER_NAME= | |
TIMESTAMP=$(date +"%F-%H-%M") | |
SECONDS=0 | |
BACKUP_DIR="/root/backup/$TIMESTAMP" | |
MYSQL=/usr/bin/mysql | |
MYSQL_USER=root | |
MYSQL_PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Above code... | |
function wp_disable_comment_url($fields) { | |
unset($fields['url']); | |
return $fields; | |
} | |
add_filter('comment_form_default_fields', 'wp_disable_comment_url'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TIMESTAMP=$(date +"%F-%H-%M") | |
BACKUP_DIR="/root/backup/$TIMESTAMP" | |
MYSQL_USER="root" | |
MYSQL=/usr/bin/mysql | |
MYSQL_PASSWORD=<MYSQL_PASSWORD_GO_HERE> | |
MYSQLDUMP=/usr/bin/mysqldump | |
mkdir -p "$BACKUP_DIR/sql" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Allow logged-in user see private posts in | |
add_action('pre_get_posts','filter_search'); | |
function filter_Search($query){ | |
if( is_admin() || ! $query->is_main_query() ) return; | |
if( current_user_can('edit_private_posts') ) { | |
$query->set('post_status',array('private','publish')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="manifest" href="/manifest.json"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"short_name": "Đ.A.T", | |
"name": "Website của Tuấn", | |
"icons": [ | |
{ | |
"src": "launcher96.png", | |
"sizes": "96x96", | |
"type": "image/png" | |
}, | |
{ |