Skip to content

Instantly share code, notes, and snippets.

@salcode
salcode / PostStatus.php
Last active October 10, 2019 17:23 — forked from JasonTheAdams/PostStatus.php
Enumeration example of the Object Value Design Pattern
<?php
class PostStatus
{
const PRIVATE = 'private';
const DRAFT = 'draft';
const PUBLISHED = 'published';
const TRASHED = 'trash';
/**
@salcode
salcode / beaver.php
Last active September 21, 2017 09:50 — forked from craigsimps/beaver.php
<?php
/**
* Modify theme to support Beaver Builder better.
*
* - Set the theme layout to full width.
* - Remove the `site-inner` markup.
* - Remove the `content-sidebar-wrap` markup.
* - Remove the entry header and page/ post title.
*
* @package Generico\Core
<?php
/*********************************************
Contests CPT
**********************************************/
/* Contest CPT :: Initiate CPT
**********************************************/
function vs_register_contests_post_type() {
How to use
[button link='http://linktosomething.com' color='orange']My Button Text![/button]