Skip to content

Instantly share code, notes, and snippets.

View chaselivingston's full-sized avatar

Chase Livingston chaselivingston

View GitHub Profile
function cl_tweak_carousel() {
global $post;
if ( $post->ID == 23) {
return true;
}
}
add_filter( 'jp_carousel_maybe_disable', 'cl_tweak_carousel');
add_filter( 'jetpack_sharing_pinterest_widget_type', 'bk_jetpack_pinterest_widget' );
function bk_jetpack_pinterest_widget( $widget ){
return 'buttonBookmark';
}
if ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
$forwarded_ips = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] );
$_SERVER['REMOTE_ADDR'] = $forwarded_ips[0];
unset( $forwarded_ips );
}
if ( !empty( $_SERVER['HTTP_INCAP_CLIENT_IP'] ) ) {
$forwarded_ips = explode( ',', $_SERVER['HTTP_INCAP_CLIENT_IP'] );
$_SERVER['REMOTE_ADDR'] = $forwarded_ips[0];
unset( $forwarded_ips );
}
Requested URL: https://public-api.wordpress.com/rest/v1/sites/ocadernodereceitas.com.br
Response Code: 200
Response:
{
"ID": 113937576,
"name": "O Caderno de Receitas",
"description": "Comida de m\u00e3e colocada \u00e0 prova, palpites e uma pitada de nostalgia. Por Mariana Weber",
"URL": "http:\/\/ocadernodereceitas.com.br",
"jetpack": true,
"subscribers_count": 0,
function jetpackme_filter_exclude_category( $filters ) {
$filters[] = array( 'not' => array(
'terms' => array( 'category.slug' =>
array( 'donotshow', 'events' )
)
) );
return $filters;
}
add_filter(
traceroute to 191.252.51.234 (191.252.51.234), 30 hops max, 60 byte packets
1 66.155.8.3 (66.155.8.3) 0.256 ms 0.278 ms 7.496 ms
2 ae0-201.was14.ip4.gtt.net (173.241.128.101) 1.428 ms 0.441 ms 1.457 ms
3 xe-8-0-3.was10.ip4.gtt.net (141.136.108.177) 2.839 ms xe-5-0-2.was10.ip4.gtt.net (89.149.186.33) 0.450 ms xe-8-2-0.was10.ip4.gtt.net (141.136.108.185) 2.703 ms
4 * * *
5 * * *
6 4.68.72.61 (4.68.72.61) 1.131 ms 4.68.72.117 (4.68.72.117) 1.294 ms 1.469 ms
7 * * *
8 190.53.186.200.sta.impsat.net.br (200.186.53.190) 133.749 ms 133.929 ms 134.053 ms
9 186.202.158.6 (186.202.158.6) 144.910 ms 186.202.158.5 (186.202.158.5) 133.424 ms 186.202.158.6 (186.202.158.6) 133.496 ms
HTTP/1.1 301 Moved Permanently
Date: Tue, 16 Aug 2016 20:32:15 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=d8f7f00c8a1652c3c5c19f43d18f66af81471379534; expires=Wed, 16-Aug-17 20:32:14 GMT; path=/; domain=.frikination.net; HttpOnly
Pragma: no-cache
Cache-Control: no-cache, must-revalidate, max-age=0
Set-Cookie: PHPSESSID=ofkn1vpd7hj0qpt2j76l9c6bs3; path=/
Location: http://www.frikination.net/xmlrpc.php/
function jeherve_contact_info_google_key() {
return '12345'; // Your API Key.
}
add_filter( 'jetpack_google_maps_api_key', 'jeherve_contact_info_google_key' );
if ( ! isset( $content_width ) ) {
$content_width = 800;
}