Skip to content

Instantly share code, notes, and snippets.

🤖
building things

Chuck Reynolds chuckreynolds

🤖
building things
Block or report user

Report or block chuckreynolds

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
@chuckreynolds
chuckreynolds / wp-fix-wpseo-noob-stuff.php
Created Mar 7, 2014
This will disable the super noob stuff in WordPress SEO by Yoast plugin. Removes the filters on edit posts screen etc.
View wp-fix-wpseo-noob-stuff.php
if (defined('WPSEO_VERSION')) {
add_filter( 'wpseo_use_page_analysis', '__return_false' );
}
@chuckreynolds
chuckreynolds / html5-email-validation.htm
Created Mar 26, 2014
HTML5 Input Email Validation
View html5-email-validation.htm
<input type="text" title="email" required pattern="[^@]+@[^@]+.[a-zA-Z]{2,6}" />
@chuckreynolds
chuckreynolds / mobile-touch-input-fields.htm
Created Mar 26, 2014
Make filling in forms less sucky on mobile devices by using the correct input types.
View mobile-touch-input-fields.htm
<!-- For most inputs, you should remove autocorrect and autocapitalize -->
<input type="(your input type)" autocapitalize="off" autocorrect="off">
<!-- Email -->
<input type="email">
<!-- Phone number -->
<input type="tel">
<!-- Some numeric input, like credit card number or ZIP code -->
@chuckreynolds
chuckreynolds / keybase.md
Created Apr 13, 2014
validating keybase. nothing important here
View keybase.md

Keybase proof

I hereby claim:

  • I am chuckreynolds on github.
  • I am chuckreynolds (https://keybase.io/chuckreynolds) on keybase.
  • I have a public key whose fingerprint is 5D77 7FD4 D61C F075 EC92 97C5 C8E1 4D91 7714 E0E8

To claim this, I am signing this object:

@chuckreynolds
chuckreynolds / add_cpts_to_wordpress_dashboard.php
Created Jul 25, 2014
Add all Custom Post Types to the WordPress At a Glance dashboard widget.
View add_cpts_to_wordpress_dashboard.php
add_action( 'dashboard_glance_items', 'add_cpts_to_dashboard_ataglance' );
function add_cpts_to_dashboard_ataglance() {
$args = array(
'public' => true,
'_builtin' => false
);
$output = 'object';
$operator = 'and';
$post_types = get_post_types( $args, $output, $operator );
@chuckreynolds
chuckreynolds / wordpress-filter-admin-published-default.php
Last active Aug 29, 2015 — forked from norcross/filter-pages-admin-link.php
This will make the WordPress admin menu link to posts and pages but with the Published filter active by default.
View wordpress-filter-admin-published-default.php
<?php
add_action ( 'admin_menu', 'rkv_filter_admin_published_default' );
function rkv_filter_admin_published_default() {
// call global submenu item
global $submenu;
// edit main link for posts
$submenu['edit.php'][5][2] = 'edit.php?post_status=publish';
@chuckreynolds
chuckreynolds / dradcast-intro.txt
Created Aug 14, 2014
My DradCast vidcast/podcast intro for Aug 13th 2014
View dradcast-intro.txt
In a world... absent of SanTan Brewery and crazy right-wing politicians.. coming to you from the land of fog, Automattic, crazy left-wing politicians and poopy sidewalks...
I'm Chuck Reynolds
And the DradCast Starts now.
@chuckreynolds
chuckreynolds / hhvm-php.ini
Created Oct 23, 2014
current /etc/hhvm/php.ini
View hhvm-php.ini
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
@chuckreynolds
chuckreynolds / gist:f53acd21fd01f0420084
Created Feb 21, 2015
WordPress function to unregister a taxonomy.
View gist:f53acd21fd01f0420084
<?php
add_action( 'init', 'unregister_taxonomy_taxname');
function unregister_taxonomy_taxname(){
global $wp_taxonomies;
$taxonomy = 'post_tag'; // tax slug to remove
if ( taxonomy_exists( $taxonomy))
unset( $wp_taxonomies[$taxonomy]);
}
View gist:704570cf8487a2c90275
Verifying that +chuckreynolds is my openname (Bitcoin username). https://onename.com/chuckreynolds
You can’t perform that action at this time.