Skip to content

Instantly share code, notes, and snippets.

View jeherve's full-sized avatar
🚀
👨‍🏭

Jeremy Herve jeherve

🚀
👨‍🏭
View GitHub Profile
@jeherve
jeherve / debug-wordpress.md
Last active April 12, 2021 11:08
How To: Enable Debugging in WordPress

Enable Debugging in WordPress

To enable debugging in WordPress, you will need to add the following to your site's wp-config.php file:

define( 'WP_DEBUG', true );

if ( WP_DEBUG ) {
	@error_reporting( E_ALL );
	@ini_set( 'log_errors', true );
@samhotchkiss
samhotchkiss / wp-multicall-example.xml
Created October 12, 2015 17:43
Example of Multicall in WordPress
<?xml version="1.0"?>
<methodCall>
<methodName>system.multicall</methodName>
<params>
<param>
<value>
<array>
<data>
<value>
<struct><member><name>methodName</name><value><string>wp.getAuthors</string></value></member><member><name>params</name><value><array><data><value><string>1</string></value><value><string>sam</string></value><value><string>a</string></value></data></array></value></member></struct>
<?php
function can_use_version( $version ) {
$secure_jetpacks = array(
'1.9' => '1.9.3',
'2.0' => '2.0.5',
'2.1' => '2.1.3',
'2.2' => '2.2.6',
'2.3' => '2.3.6',
'2.4' => '2.4.3',
@nacin
nacin / wcphilly-admin.php
Created November 5, 2011 04:03 — forked from norcross/admin_htaccess.txt
WCPhilly Admin
<?php
/*
Plugin Name: WordCamp Philly 2011 Admin
Plugin URI: http://localhost/whitelabel
Description: Some swanky stuff to make your admin look GOOD
Author: Andrew Norcross
Version: 0.1
Requires at least: 3.0
Author URI: http://andrewnorcross.com
@kovshenin
kovshenin / style-2.css
Created August 9, 2011 15:13
Twitter Blockquotes Styles
blockquote.tweet {
border-left: solid 4px #ccc;
padding-left: 8px;
}