/** * Years in Business Shortcode * * Usage: [years_in_business year=”1985″] → 41 in 2026 * [years_in_business year=”1985″ since=”03-15″] → only counts completed years */ add_shortcode( ‘years_in_business’, function( $atts ) { $atts = shortcode_atts( array( ‘year’ => ”, // four-digit…Continue reading
// 1. Add the User ID column to the users table add_filter(‘manage_users_columns’, ‘add_user_id_column’); function add_user_id_column($columns) { // Insert ‘user_id’ column after the checkbox column $new_columns = array(); foreach ($columns as $key => $value) { $new_columns[$key] = $value; if ($key ===…Continue reading
/** * Christian Financial Advisors – Force correct srcset/sizes on homepage hero image * * The homepage hero image (post 133051, element 316, class bde-image2-133051-316) * needs a hand-tuned sizes attribute Oxygen’s builder has no UI for, and its *…Continue reading
/** * Replace wp_mail with native PHP mail() */ add_filter(‘pre_wp_mail’, ‘use_native_mail’, 10, 2); function use_native_mail($null, $atts) { $to = $atts[‘to’]; $subject = $atts[‘subject’]; $message = $atts[‘message’]; $headers = isset($atts[‘headers’]) ? $atts[‘headers’] : ”; $attachments = isset($atts[‘attachments’]) ? $atts[‘attachments’] : array();…Continue reading
/* * Snippet #98 (ID 37755): ROP level trees * Type: php * Status: publish * Location: 1 * Modified: 2026-02-24 22:25:10 * * FIX 2026-08-09: every SQL query in this file referenced pre-migration * column names (ROP1Code, ROP2Code, ROP3Code,…Continue reading
/* * Snippet: Random Unreached People Group — AJAX Field Loader * Type: php * Location: frontend_only * Tags: generate-shortcodes, random-people-group * * Selects a random people group (SPI = 0) via a WordPress AJAX endpoint. * Shortcodes output placeholder…Continue reading
/* * Snippet #101 (ID 37767): People Groups of the World Mapbox – LPI * Type: php * Status: publish * Location: 1 * Modified: 2026-03-24 17:49:22 * * FIX 2026-08-09: hardcoded Mapbox access token replaced with get_option( ‘pg_mapbox_token’, ”…Continue reading
/* * Snippet #108 (ID 37790): People Groups of the World – Mapbox map by Phases – ArcGIS generates shortcode * Type: php * Status: publish * Location: 1 * Modified: 2026-05-15 00:39:24 * * FIX 2026-08-09: hardcoded Mapbox access…Continue reading
https://www.bloomberg.com/profile/company/2682982D:USContinue reading