Skip to content

Instantly share code, notes, and snippets.

@sercomi
sercomi / run-once.php
Created March 8, 2012 09:34
WP: Run once function
<?php
/**
* The main template file.
*
* @package WordPress
*/
function run_once($key){
$test_case = get_option('run_once');
@sercomi
sercomi / gist:1992074
Created March 7, 2012 09:07
HTML: HTML5 template
<!doctype html>
<html class="no-js" lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
@sercomi
sercomi / gist:1991935
Created March 7, 2012 08:34
WP: Theme comment
<?php
/**
* The main template file.
*
* This theme is purely for the purpose of testing theme options in Options Framework plugin.
*
* @package WordPress
* @subpackage Options Check
*/
@sercomi
sercomi / gist:1991927
Created March 7, 2012 08:31
WP: Plugin comment
<?php
/*
Plugin Name:
Plugin URI:
Description:
Version:
Author:
Author URI:
*/