add_filter( ‘charitable_default_donation_fields’, ‘charitable_change_default_donation_fields’, 10, 1); function charitable_change_default_donation_fields( $defaults ) { $defaults[’email’][‘donation_form’][‘label’] = ‘Please Provide Email’; return $defaults; }Continue reading
//v2.1 add_shortcode(‘visitor_datetime’, function() { static $instance = 0; $instance++; $id = ‘visitor_time_’ . $instance; return ‘ ‘; });Continue reading
//v2.0 – 02/24/2025 function goog_map_shortcode($atts = []) { // Check for bots first $bot_patterns = array( ‘googlebot’, ‘bingbot’, ‘slurp’, ‘duckduckbot’, ‘baiduspider’, ‘yandexbot’, ‘sogou’, ‘exabot’, ‘facebookexternalhit’ ); $user_agent = strtolower($_SERVER[‘HTTP_USER_AGENT’] ?? ”); foreach ($bot_patterns as $pattern) { if (strpos($user_agent, $pattern) !==…Continue reading
function remove_my_action() { remove_action(‘wp_head’, ‘et_add_viewport_meta’); } function dt_et_add_viewport_meta(){ echo ‘‘; } add_action( ‘init’, ‘remove_my_action’); add_action( ‘wp_head’, ‘dt_et_add_viewport_meta’ );Continue reading
add_action( ‘init’, function() { if ( ! current_user_can( ‘manage_options’ ) && ! is_admin() && ! is_login() ) { wp_die( ‘ Website Unavailable This version of the website is no longer active. The owner has moved the site to a new…Continue reading
add_action(‘mepr-event-member-signup-completed’, function($event) { $user = $event->get_data(); bp_set_member_type($user->ID, ‘member_type’); });Continue reading
//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