Skip to content

Instantly share code, notes, and snippets.

remove_action('wp_head', 'feed_links_extra', 3);
remove_action('wp_head', 'feed_links', 2);
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'parent_post_rel_link', 10);
remove_action('wp_head', 'start_post_rel_link', 10);
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10); // remove prev/next
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'print_emoji_detection_script', 7);
@klipach
klipach / 0_reuse_code.js
Created August 16, 2016 09:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@klipach
klipach / gist:cc6d9d8a467c085d37ee36ac7118d6cd
Created June 16, 2016 12:44 — forked from JeroenBoersma/gist:60a4acb8e56498bce41c
Magento cleanup unused product images
<?php
/**
* Cleanup images from Magento
*/
require 'app/Mage.php';
if (!Mage::isInstalled()) {
echo "Application is not installed yet, please complete install wizard first.";
exit;
var React = require('react');
module.exports = React.createClass({
getInitialState: function () {
return {
battery: 0
};
},
componentDidMount: function () {
navigator.getBattery().then(
module.exports = {
entry: './src/js/app.jsx',
output: {
filename: 'public/[name].js'
},
module: {
preLoaders: [
{ test: /\.json$/, exclude: /node_modules/, loader: 'json'},
],
loaders: [
@klipach
klipach / config.yml
Created October 23, 2014 07:01
Using Guzzle4 as a service in Symfony 2.x project with logging via Monolog
# Sometimes is it is required to add logging of all guzzle requests into log file via Monolog
# You need to add https://github.com/guzzle/log-subscriber to your project
# app/config/config.yml
monolog:
channels: ["guzzle"]
handlers:
main:
channels: ["!guzzle"]
<?php
// Helper/Data.php
...
public function prepareIndexdata($index, $separator = ' ', $entity_id = NULL)
{
$_attributes = array();