Skip to content

Instantly share code, notes, and snippets.

🚀
👨‍🏭

Jeremy Herve jeherve

🚀
👨‍🏭
Block or report user

Report or block jeherve

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeherve
jeherve / debug-wordpress.md
Last active Aug 30, 2019
How To: Enable Debugging in WordPress
View debug-wordpress.md

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 Oct 12, 2015
Example of Multicall in WordPress
View wp-multicall-example.xml
<?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>
View jp-version-check.php
<?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',
View wcphilly-admin.php
<?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 Aug 9, 2011
Twitter Blockquotes Styles
View style-2.css
blockquote.tweet {
border-left: solid 4px #ccc;
padding-left: 8px;
}
You can’t perform that action at this time.