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
//* Remove Emoji from WordPress | |
function disable_emojis() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); | |
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); | |
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); | |
add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' ); |
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
//* Loại bỏ các thẻ HTML được cho phép bên trên khung bình luận trong Genesis | |
add_filter( 'comment_form_defaults', 'sp_remove_comment_form_allowed_tags' ); | |
function sp_remove_comment_form_allowed_tags( $defaults ) { | |
$defaults['comment_notes_after'] = ''; | |
return $defaults; | |
} |
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
//* Tùy biến nút Submit trong Genesis | |
add_filter( 'comment_form_defaults', 'sp_comment_submit_button' ); | |
function sp_comment_submit_button( $defaults ) { | |
$defaults['label_submit'] = __( 'Đăng bình luận', 'custom' ); | |
return $defaults; | |
} |
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
//* Tùy biến dòng chữ Speak Your Mind trong Genesis | |
add_filter( 'comment_form_defaults', 'sp_comment_form_defaults' ); | |
function sp_comment_form_defaults( $defaults ) { | |
$defaults['title_reply'] = __( 'Để lại một bình luận' ); | |
return $defaults; | |
} |
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
<Files *.php> | |
Order allow,deny | |
Deny from all | |
</Files> | |
<Files wp-tinymce.php> | |
Allow from all | |
</Files> | |
<Files ms-files.php> | |
Allow from all | |
</Files> |
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
<Files *.php> | |
Order allow,deny | |
Deny from all | |
</Files> | |
Options All -Indexes |
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
http://rpc.pingomatic.com/ | |
http://bing.com/webmaster/ping.aspx | |
http://ping.blo.gs/ | |
http://blog.goo.ne.jp/XMLRPC | |
http://blog.with2.net/ping.php | |
http://blogping.unidatum.com/RPC2 | |
http://blogpingr.de/ping/rpc2 | |
https://ping.blogs.yandex.ru/RPC2 | |
http://blogsearch.google.ae/ping/RPC2 | |
http://blogsearch.google.at/ping/RPC2 |
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
//* Conditional load WooCommerce's JS and CSS | |
function conditionally_load_woc_js_css() { | |
if (function_exists('is_woocommerce')) { | |
if (!is_woocommerce() && !is_cart() && !is_checkout() && !is_account_page() && !is_product() && !is_product_category() && !is_shop()) { | |
wp_dequeue_style('woocommerce-general'); | |
wp_dequeue_style('woocommerce-layout'); | |
wp_dequeue_style('woocommerce-smallscreen'); | |
wp_dequeue_style('woocommerce_frontend_styles'); | |
wp_dequeue_style('woocommerce_fancybox_styles'); | |
wp_dequeue_style('woocommerce_chosen_styles'); |
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
# BEGIN WordPress | |
RewriteEngine On | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
# END WordPress |
NewerOlder