Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Delete all posts for specified posts types
wp post delete $(wp post list --post_type='post,page,product,attachment' --format=ids) --force
@butlerblog
butlerblog / wp_config.php
Last active February 1, 2024 09:00
Configure WordPress #wp_mail function to send through #SMTP server https://b.utler.co/Y3
<?php
/*
* Set the following constants in wp-config.php.
* These should be added somewhere BEFORE the constant ABSPATH is defined.
*
* Author: Chad Butler
* Author URI: https://butlerblog.com
*
* For more information and instructions, see: https://b.utler.co/Y3
anonymous
anonymous / config.json
Created July 14, 2014 07:58
Bootstrap Customizer Config
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
/*
|--------------------------------------------------------------------------
| Delete form macro
|--------------------------------------------------------------------------
|
| This macro creates a form with only a submit button.
| We'll use it to generate forms that will post to a certain url with the DELETE method,
| following REST principles.
|
*/
@shakyShane
shakyShane / base.php
Created July 22, 2012 09:36
boilerplate for a Laravel Base Controller
<?php
class Base_Controller extends Controller {
public $layout = 'layouts.main';
public function __construct(){
//Styles
Asset::add('css', 'css/main.css');