Disable Emoji Script

// Disable Emoji Script / Kiri Vadivelu / 2026 function disable_emoji_script() { // Remove the inline emoji detection script from the frontend head remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7); // Remove the emoji detection script from the admin area remove_action(‘admin_print_scripts’, ‘print_emoji_detection_script’); // Remove…Continue reading

myceluya_imei_checker

// 1. Algoritmo de Luhn para validar que el IMEI sea real (15 dígitos) function myceluya_validar_imei($imei) { $imei = preg_replace(‘/[^0-9]/’, ”, $imei); if (strlen($imei) !== 15) return false; $sum = 0; for ($i = 0; $i < 15; $i++) {…Continue reading

Disable All Search

// Disable All Search / Kiri Vadivelu / 2026 function disable_search_query( $query, $error = true ) { if ( is_search() && !is_admin() ) { $query->is_search = false; $query->query_vars[‘s’] = false; $query->query[‘s’] = false; if ( $error ) { $query->is_404 =…Continue reading

No Index Category

// No Index Category / Kiri Vadivelu / 2026 add_filter(‘wp_robots’, ‘no_index_category’); function no_index_category(array $robots) { // Check if the current post has ‘members’ category if (is_single() && has_category(‘members’)) { $robots[‘noindex’] = true; } return $robots; }Continue reading

No Index Page

// No Index Page / Kiri Vadivelu / 2026 add_filter( ‘wp_robots’, ‘no_index_page’ ); function no_index_page( $robots ) { if ( is_page() ) { $robots[‘noindex’] = true; } return $robots; }Continue reading

Extend Core CSS

/* Extend Core CSS / Kiri Vadivelu / 2026 */ /* TL;DR Inlining css is more reliable and consistent */ /* smooth scroll on demand */ @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } } /* Select text, edit…Continue reading

Remove Optional Script

remove_action( ‘wp_footer’, ‘wpcomsh_footer_rum_js’ ); // remove frontend // remove_action( ‘admin_footer’, ‘wpcomsh_footer_rum_js’ ); // remove backendContinue reading