Skip to content

Instantly share code, notes, and snippets.

View joffreypersia's full-sized avatar
🫡

Joffrey Persia joffreypersia

🫡
View GitHub Profile
@iLiranS
iLiranS / sideBar.background
Last active November 13, 2025 13:39
Rounded Corners for VsCode Settings.json
{
"explorer.confirmDelete": false,
"terminal.integrated.fontWeight": "500",
"terminal.integrated.letterSpacing": 1,
"terminal.integrated.fontWeightBold": "900",
"terminal.integrated.gpuAcceleration": "off",
"editor.fontFamily": " 'Fira Code Retina' ,Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontWeight": "400",
"liveServer.settings.donotShowInfoMsg": true,

The WordPress Codex offers an interesting snippet for a shortcode. First copy the following code into the functions.php of the theme or use WP Code Box:

function wpcodex_hide_email_shortcode( $atts , $content = null ) {
	if ( ! is_email( $content ) ) {
		return;
	}

	return '<a href="mailto:' . antispambot( $content ) . '">' . antispambot( $content ) . '</a>';
}