Skip to content

Instantly share code, notes, and snippets.

function my_remove_wp_seo_meta_box() {
remove_meta_box('wpseo_meta', YOUR_POST_TYPE_NAME_HERE, 'normal');
}
add_action('add_meta_boxes', 'my_remove_wp_seo_meta_box', 100);
@timcv
timcv / AdminBarEnvColors
Created March 17, 2017 11:39
Set color on the WordPress admin bar depending the current environment
<?php namespace TCV;
class EnvSwitcher
{
public function __construct()
{
$this->setEnv();
add_filter('body_class', [$this, 'add_env_body_class']);
add_filter('admin_body_class', [$this, 'add_env_body_class']);
@timcv
timcv / jquery-bootstrap-datepicker.css
Last active March 24, 2016 10:26 — forked from gabrieljenik/jquery-bootstrap-datepicker.css
jQuery UI Datepicker Bootstrap 3 Style
.ui-datepicker {
background-color: #fff;
border: 1px solid #66AFE9;
border-radius: 4px;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: 4px;
padding: 10px;
width: 240px;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
@timcv
timcv / jquery-bootstrap-datepicker.css
Created March 24, 2016 10:26 — forked from miwahall/jquery-bootstrap-datepicker.css
jQuery UI Datepicker Bootstrap 3 Style
.ui-datepicker {
background-color: #fff;
border: 1px solid #66AFE9;
border-radius: 4px;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: 4px;
padding: 10px;
width: 240px;
}
<?php
class Post
{
protected $table = 'posts';
/**
* You can define your own custom boot method.
*
* @return void
**/