Skip to content

Instantly share code, notes, and snippets.

View linuxcarl's full-sized avatar

Carlos Ramírez Flores linuxcarl

View GitHub Profile
/**
* A very simple class for some basic Date operations
* @author Felipe Lavín <www.yukei.net>
*/
var dateHelper = {
arrToDate : function(arr, format){
/**
* Convert an array to a Date object
* @argument arr {Array} An array containing at least day-month-year
* @argument format {String} An string representation of the date format. Default: dd-mm-yyyy. More could be added as necessary
@linuxcarl
linuxcarl / functions.php
Created November 6, 2017 06:10 — forked from codigoconjuan/functions.php
Post Type Especialidades para La Pizzeria
add_action( 'init', 'lapizzeria_especialidades' );
function lapizzeria_especialidades() {
$labels = array(
'name' => _x( 'Pizzas', 'lapizzeria' ),
'singular_name' => _x( 'Pizzas', 'post type singular name', 'lapizzeria' ),
'menu_name' => _x( 'Pizzas', 'admin menu', 'lapizzeria' ),
'name_admin_bar' => _x( 'Pizzas', 'add new on admin bar', 'lapizzeria' ),
'add_new' => _x( 'Add New', 'book', 'lapizzeria' ),
'add_new_item' => __( 'Add New Pizza', 'lapizzeria' ),