Skip to content

Instantly share code, notes, and snippets.

View rpujakesuma's full-sized avatar

Ridwan Pujakesuma rpujakesuma

View GitHub Profile
@aahan
aahan / WordPress Custom Global Variables.md
Last active September 24, 2024 08:46
Creating and using custom global variables in wordpress.

First create global variables (in functions.php or as a mu-plugin):

<?php

/*
 * CUSTOM GLOBAL VARIABLES
 */
function wtnerd_global_vars() {