Add category to page

// Abilita categorie (e, opzionalmente, tag) per le Pagine add_action(‘init’, function () { register_taxonomy_for_object_type(‘category’, ‘page’); // categorie per le pagine // register_taxonomy_for_object_type(‘post_tag’, ‘page’); // opzionale: tag per le pagine });Continue reading

BikeYard Admin Notification System v1.0

/** * BikeYard Admin Notification System v1.0 * * Sends email notifications to admins for: * – New account registrations * – New bike listings * – Subscription changes * – Support requests * * Add as WPCode snippet: *…Continue reading

BikeYard Email Diagnostic & Quick Fix

/** * BikeYard Email Diagnostic & Quick Fix * Run this to diagnose and fix email issues immediately * * Add as WPCode snippet: * – Title: BikeYard Email Diagnostic * – Location: Everywhere * – Priority: 5 * –…Continue reading

BikeYard Welcome Email Handler v3.0

/** * BikeYard Welcome Email Handler v3.0 – FIXED * Complete solution for welcome email issues * * Add as WPCode snippet: * – Title: BikeYard Welcome Email v3 Fixed * – Location: Everywhere * – Priority: 10 * –…Continue reading

BikeYard Webhook Handler

/** * BikeYard Webhook Handler v5.0 – FIXED EMAIL TRIGGER * Properly triggers welcome emails by sending them BEFORE exit * * REPLACES: bikeyard-webhook-handler-v4.php * * Add as WPCode snippet: * – Title: BikeYard Webhook Handler v5 Fixed * –…Continue reading

Allow SVG Files Upload

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Welcome Email Add-on

/** * Welcome Email Add-on * This ensures welcome emails are sent when users are created * Add as WPCode snippet – set to “Everywhere” * Version: 2.0 – Modern HTML email with button styling */ // Send welcome email…Continue reading

Disable New User Notifications (copy)

function wpcode_send_new_user_notifications( $user_id, $notify = ‘user’ ) { if ( empty( $notify ) || ‘admin’ === $notify ) { return; } elseif ( ‘both’ === $notify ) { // Send new users the email but not the admin. $notify =…Continue reading