Category: Admin
(cloud) Dynamic Keyword Insertion
//leo is amazing function format_keyword_parameter($atts = []) { $defaults = [‘default’ => ”]; $atts = shortcode_atts($defaults, $atts); if (is_admin()) { return ‘[display_keyword’ . ($atts[‘default’] ? ‘ default=”‘ . esc_attr($atts[‘default’]) . ‘”‘ : ”) . ‘]’; } if (isset($_GET[‘kw’])) { $keyword…Continue reading
(cloud) RB JSTag – RingPools
// Domain to service mapping $domain_map = [ // CHS (Call Home Services) domains ‘callhomeservices.org’ => ‘CHS’, ‘calldentist.org’ => ‘CHS’, ‘callelectrician.org’ => ‘CHS’, ‘callremodel.org’ => ‘CHS’, ‘callpestcontrol.org’ => ‘CHS’, ‘callroofing.org’ => ‘CHS’, ‘callappliancerepair.org’ => ‘CHS’, ‘biohazardremoval.org’ => ‘CHS’, ‘callkeymaster.com’ =>…Continue reading
Testing Deployment (copy)
add_action( ‘init’, function() { // dostufff(); // test }); s1 s2 s3Continue reading
https://sites.google.com/d/1avAsGl7oMBLJIChoaW9yaoOiAr-B6jfK/p/1kbx8BATlg53-QAVM9O8IXHJhuAw0qg1E/
https://sites.google.com/d/1avAsGl7oMBLJIChoaW9yaoOiAr-B6jfK/p/1kbx8BATlg53-QAVM9O8IXHJhuAw0qg1E/Continue reading
Untitled Snippet
(cloud) Cache URL Parameters v3
//leo is amazing function cache_url_params() { if (!session_id()) { session_start(); } // Skip on admin or login pages if (is_admin() || in_array($GLOBALS[‘pagenow’], [‘wp-login.php’])) { return; } $bot_agents = [‘Googlebot’, ‘bingbot’, ‘Baiduspider’, ‘YandexBot’, ‘DuckDuckBot’, ‘Slurp’, ‘facebot’, ‘ia_archiver’]; $user_agent = isset($_SERVER[‘HTTP_USER_AGENT’]) ?…Continue reading
(wp-code admin) Testing Deployment
Test Snippet
HEllo worldContinue reading
(cloud) TRACKING: LOCATION
//v2.7 ////Dynamic Location Tracking define(‘LOCATION_CSV_PATH’, ‘CSV/googloc.csv’); /** * Generate unique visitor ID based on IP and user agent */ function dl2_get_visitor_id() { return md5($_SERVER[‘REMOTE_ADDR’] . ($_SERVER[‘HTTP_USER_AGENT’] ?? ”)); } function validate_zip($zip) { return preg_match(‘/^[0-9]{4,5}$/’, $zip) ? $zip : ”; }…Continue reading