Skip to content

Instantly share code, notes, and snippets.

View heychriszappa's full-sized avatar

Chris Zappa heychriszappa

View GitHub Profile
@jaredatch
jaredatch / gist:3604586
Last active December 9, 2015 21:44
Load custom CSS on admin login page
<?php
/**
* Customize CSS for login screen
*
* @since 1.0.0
* @author Jared Atchison
* @link http://jaredatchison.com/code/
*/
function ja_login_screen_css() {
echo '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory() . '/css/style-login.css" />' . "\n";
@Adirael
Adirael / fix-wordpress-permissions.sh
Created August 17, 2012 23:16
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@billerickson
billerickson / functions.php
Created March 22, 2012 22:07
Customize Author Box
<?php
add_filter( 'genesis_author_box', 'be_author_box', 10, 6 );
/**
* Customize Author Box
* @author Bill Erickson
* @link http://www.billerickson.net/code/customize-author-box
*
* @param string $output
* @param string $context
@billerickson
billerickson / gist:1670316
Created January 24, 2012 14:04
Customize Roles & Capabilities
<?php
/**
* Customize Roles & Capabilities
*
* @package Dachis
* @subpackage Core Functionality
* @version 1.0
* @author Bill Erickson <[email protected]>
* @copyright Copyright (c) 2011, Bill Erickson
@markjaquith
markjaquith / disable-plugins-when-doing-local-dev.php
Created June 24, 2011 10:24
Disables specified WordPress plugins when doing local development
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/