Untitled Snippet

NOOB STORE NOOB STORE Best Products at Best Prices Home Products Contact Welcome To Our Store Shop Your Favourite Products Online! Our Products Headphones Rs. 1500 Order Now Smart Watch Rs. 2500 Order Now Shoes Rs. 3000 Order Now Mobile…Continue reading

Simple HTTP Debug

// Simple HTTP Debug / Kiri Vadivelu / 2026 function simple_http_debug( $response, $context, $class, $parsed_args, $url ) { error_log( ‘http_debug: ‘.$url ); } add_action(‘http_api_debug’, ‘simple_http_debug’, 10, 5);Continue reading

Admin Debug Log

// Admin Debug Log / Kiri Vadivelu / 2026 add_action( ‘admin_menu’, function () { add_menu_page( ‘Debug Log’, ‘Debug Log’, ‘manage_options’, ‘view-debug-log’, ‘render_debug_log_page’, ‘dashicons-clipboard’, 99 ); }); function render_debug_log_page() { $log_file = WP_CONTENT_DIR . ‘/debug.log’; if ( ! file_exists( $log_file )…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

Allowed Referrer Page

// Allowed Referrer Page / Kiri Vadivelu / 2026 add_action(‘template_redirect’, function() { // ID of the page to protect eg. Thank You page if (!is_page(123)) { return; } // URL of the allowed referring page if (wp_get_referer() === ‘https://yoursite.com/form-page/’) {…Continue reading

Exclude Cache Page

// Exclude Cache Page / Kiri Vadivelu / 2026 function exclude_cache_page() { $excluded_urls = array( ‘/client-portal/’, ‘/checkout/’, ‘/cart/’, ); $uri = parse_url( $_SERVER[‘REQUEST_URI’], PHP_URL_PATH ); foreach ( $excluded_urls as $url ) { if ( strpos( $uri, $url ) !== false…Continue reading

Exclude Caching Page

// Exclude Caching Page / Kiri Vadivelu / 2026 function exclude_caching_page() { $excluded_pages = array( 6, 57, 103 ); // ← your page IDs here if ( is_page( $excluded_pages ) ) { if ( ! defined( ‘DONOTCACHEPAGE’ ) ) {…Continue reading

Custom Gmail SMTP

// Custom Gmail SMTP / Kiri Vadivelu / 2026 add_action(‘phpmailer_init’, ‘send_gmail_smtp’); function send_gmail_smtp($phpmailer) { $phpmailer->isSMTP(); $phpmailer->Host = ‘smtp.gmail.com’; $phpmailer->SMTPAuth = true; $phpmailer->Port = 587; // Use 465 for SSL, 587 for TLS $phpmailer->SMTPSecure = ‘tls’; // ‘ssl’ for port 465…Continue reading