Software developer from The Netherlands with a passion for efficiency, workflow automation, and self-hosted platforms. Creator of GyroidVault.
Self-hosted 3D model library and print management platform.
Synced with @TeeCodeDev
A curated collection of reusable snippets for PHP, CSS, JS, Security, and WordPress.
Fonts scale with screen size
/* --- Fluid Typography --- */
/* H1 Hoofdtitel */
/* Minimaal 32px (mobiel), groeit mee, maximaal 56px (grote schermen) */
h1, .elementor-heading-title.elementor-size-default {
font-size: clamp(2rem, 5vw, 3.5rem) !important;
}
/* H2 Sectie titels */
/* Minimaal 26px, groeit mee, maximaal 40px */
h2, .elementor-widget-heading h2.elementor-heading-title {
font-size: clamp(1.625rem, 4vw, 2.5rem) !important;
}
/* H3 Subkopjes */
/* Minimaal 22px, groeit mee, maximaal 28px */
h3, .elementor-widget-heading h3.elementor-heading-title {
font-size: clamp(1.375rem, 2.5vw, 1.75rem) !important;
}
/* Body / Paragraaf tekst */
/* De !important zorgt dat dit wint van de widget-instellingen */
p, body, .elementor-widget-text-editor {
font-size: clamp(1rem, 0.5vw + 0.8rem, 1.125rem) !important;
}
/* Uitzondering voor kleine lettertjes (zoals copyright/footer) */
/* Geef deze widgets of secties de CSS-klasse: 'kleine-tekst' */
.kleine-tekst p, .kleine-tekst, small {
font-size: 0.875rem !important; /* 14px */
}
jQuery Migrate adds support for older jQuery versions, often useful for older themes. It’s rare that it’s needed so it’s best to remove it to take one request away from page loads.
/************************************************************
* @description WordPress | Remove jQuery migrate
* @author Systemedic
* @URL https://systemedic.nl
************************************************************/
function smartwp_remove_jquery_migrate( $scripts ) {
if ( !is_admin() && !empty( $scripts->registered['jquery'] ) ) {
$scripts->registered['jquery']->deps = array_diff( $scripts->registered['jquery']->deps, ['jquery-migrate'] );
}
}
add_action('wp_default_scripts', 'smartwp_remove_jquery_migrate');
Adds a custom logo to the top left of the WordPress admin
/************************************************************
* @description WordPress | Custom logo top left in WP Admin
* @author Systemedic
* @URL https://systemedic.nl
************************************************************/
function smartwp_custom_logo_wp_dashboard() {
echo "<style type='text/css'>
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
background-image: url('" . get_bloginfo('stylesheet_directory') . "/admin-icon.png');
background-size: contain;
background-position: 0 0;
color:rgba(0, 0, 0, 0);
}
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
background-position: 0 0;
}";
}
Create a user through a php snippet
/************************************************************
* @description WordPress | Create user
* @author Systemedic
* @URL https://systemedic.nl
************************************************************/
function smartwp_create_admin_user(){
$username = 'Systemedic';
$password = 'CHANGE_THIS_PASSWORD'; // Changed for security
$email = 'E-MAIL HERE';
//This will ensure it only tries to create the user once (based on email/username)
if ( !username_exists( $username ) && !email_exists( $email ) ) {
$userid = wp_create_user( $username, $password, $email );
$user = new WP_User( $userid );
$user->set_role( 'administrator' );
}
}
add_action('init', 'smartwp_create_admin_user');
Welcome to TeeCode. I am a developer based in The Netherlands, navigating life in my late thirties / early forties. When I'm not behind my screen, I'm spending time with my wife, our two children, and the cat.
This portal is my digital playground. It started as a hobby project simply because I enjoy building things. I use this space to document my work, save useful code snippets, and track the development of my tools.
I have a broad range of interests, but one theme always returns: Efficiency. I am always looking for ways to optimize workflows and make processes smarter and faster. I do most of my work on Windows, creating solutions that simplify tasks.
Feel free to browse around, use the snippets, or check out the roadmap!