Skip to content

Instantly share code, notes, and snippets.

@salcode
salcode / PostStatus.php
Last active Oct 10, 2019 — forked from JasonTheAdams/PostStatus.php
Enumeration example of the Object Value Design Pattern
View PostStatus.php
<?php
class PostStatus
{
const PRIVATE = 'private';
const DRAFT = 'draft';
const PUBLISHED = 'published';
const TRASHED = 'trash';
/**
View 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
View contests-by-shortcode.php
<?php
/*********************************************
Contests CPT
**********************************************/
/* Contest CPT :: Initiate CPT
**********************************************/
function vs_register_contests_post_type() {
View README.txt
How to use
[button link='http://linktosomething.com' color='orange']My Button Text![/button]