Skip to content

Instantly share code, notes, and snippets.

View Steveorevo's full-sized avatar

Stephen J. Carnam Steveorevo

View GitHub Profile
<?php
/**
* Place next to wp-blog-header.php. Visit this file to find the time suck.
*/
declare(ticks=1);
register_tick_function('ds_do_profile');
$ds_profile = array();
$ds_last_time = microtime(true);
@Steveorevo
Steveorevo / install.php
Last active April 6, 2016 07:08
Automate your WordPress installation with this WordPress "drop in" (goes in your wp-contents folder).
<?php
echo 'This has been customized!!!';
// Perform post-install customizations
if ( function_exists( 'add_action' ) ){
add_action( 'wp_mail_content_type' , 'customize_install' );
function customize_install(){
// Switch themes
switch_theme('twentytwelve');
@Steveorevo
Steveorevo / wp-config.php
Created July 12, 2012 10:54
Sync DesktopServer local/live wp-config.php without overwrite worries
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the