Skip to content

Instantly share code, notes, and snippets.

View rdelbem's full-sized avatar

Rodrigo Del Bem rdelbem

View GitHub Profile
@rdelbem
rdelbem / FunctionsLoader.php
Last active August 22, 2022 02:40
WordPress functions loader
<?php
/**
*
* Expected file structure
*
* └── CHILD_THEME_FOLDER/ // it does not have to be a child theme, it can be your own custom theme
* ├── functions.php // instantiate FunctionsLoader here by new FunctionsLoader()
* ├── style.css
* └── src/

Keybase proof

I hereby claim:

  • I am rdelbem on github.
  • I am rdelbem (https://keybase.io/rdelbem) on keybase.
  • I have a public key ASBvg5kWqcyv1R85SJVa6fdZWH61d-W4ssmdArr_97ig4Qo

To claim this, I am signing this object:

@rdelbem
rdelbem / wordpress-base-custom-data.php
Created July 12, 2021 05:39 — forked from paulund/wordpress-base-custom-data.php
A PHP class to handle CRUD functionality in WordPress default tables.
<?php
/**
* Abstract class which has helper functions to get data from the database
*/
abstract class Base_Custom_Data
{
/**
* The current table name
*
* @var boolean