Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| /* | |
| Copyright 2012-2021 Viktor Klang | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| <?php | |
| function rkv_url_spamcheck( $approved , $commentdata ) { | |
| $author_url = $commentdata['comment_author_url']; | |
| $author_url_length = strlen($author_url); | |
| if ($author_url_length > 50 ) | |
| $approved = 'spam'; |
| <?php | |
| // Map grabber :: Yandex.Maps + jQuery + PHP/DOMDocument/XPath | |
| // by Proger_XP :: http://proger.me | |
| // Original article (Russian): http://habrahabr.ru/post/184334/ | |
| // In public domain. I appreciate backlinks. | |
| function dl($url) { | |
| require_once 'sqobot/lib/downwind.php'; | |
| return new Downwind($url, array( |
| /** | |
| * Optimize WooCommerce Scripts | |
| * Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
| function child_manage_woocommerce_styles() { | |
| //remove generator meta tag | |
| remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |
| <?php | |
| /* | |
| * Allows manual override on a per page/post basis | |
| * for the display of the Roots Sidebar | |
| * | |
| * Allows for filtering the post types that show the metabox | |
| * | |
| */ |
| <?php | |
| /** | |
| * Plugin Name: Multisite: Passwort Reset on Local Blog | |
| * Plugin URI: https://gist.github.com/eteubert/293e07a49f56f300ddbb | |
| * Description: By default, WordPress Multisite uses the main blog for passwort resets. This plugin enables users to stay in their blog during the whole reset process. | |
| * Version: 1.0.0 | |
| * Author: Eric Teubert | |
| * Author URI: http://ericteubert.de | |
| * License: MIT | |
| */ |
I've been asked a few times over the last few months to put together a full write-up of the Git workflow we use at RichRelevance (and at Precog before), since I have referenced it in passing quite a few times in tweets and in person. The workflow is appreciably different from GitFlow and its derivatives, and thus it brings with it a different set of tradeoffs and optimizations. To that end, it would probably be helpful to go over exactly what workflow benefits I find to be beneficial or even necessary.
| // For Yoast SEO Plugin Version: 14.1+ add to your Wordpress Theme's functions.php... | |
| // Remove All Yoast HTML Comments | |
| // https://gist.github.com/paulcollett/4c81c4f6eb85334ba076 | |
| // Credit @devendrabhandari (https://gist.github.com/paulcollett/4c81c4f6eb85334ba076#gistcomment-3303423) | |
| add_filter( 'wpseo_debug_markers', '__return_false' ); | |
| // For Yoast SEO Plugin Version: < 14.1 add to your Wordpress Theme's functions.php... |