Skip to content

Instantly share code, notes, and snippets.

View codebyksalting's full-sized avatar
🎯
Focusing

Kendrick Salting codebyksalting

🎯
Focusing
  • Baguio, Philippines
View GitHub Profile
<?php
class MyTheme
{
private function actionAfterSetup($function)
{
add_action('after_setup_theme', function() use ($function) {
$function();
});
}
(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
define(['buoy'], factory(root));
} else if ( typeof exports === 'object' ) {
module.exports = factory(require('buoy'));
} else {
root.myPlugin = factory(root, root.buoy);
}
})(typeof global !== "undefined" ? global : this.window || this.global, function (root) {