Skip to content

Instantly share code, notes, and snippets.

View justinrains's full-sized avatar

Justin Rains justinrains

View GitHub Profile
@justinrains
justinrains / functions.php
Last active February 2, 2021 17:28 — forked from paulcollett/functions.php
Remove Yoast HTML Comments “This site is optimized with the Yoast WordPress SEO plugin”
// https://gist.github.com/justinrains/b00ca879f83c741d0dc139a25ec642c6
// Remove All Yoast HTML Comments
add_filter( 'wpseo_debug_markers', '__return_false' );
add_action('wp_head',function() { ob_start(function($o) {
return preg_replace('/\n?<.*?yoast seo plugin.*?>/mi','',$o);
}); },~PHP_INT_MAX);
<?php
$args = array (
'post_type' => 'pp_questions',
'meta_key' => 'order_number',
'orderby' => 'meta_value_num',
'order' => 'ASC',
'posts_per_page' => -1,
);
?>
<form method="post" id="download_form" action="">
@justinrains
justinrains / jquery.cbToggle.js
Created June 14, 2011 21:30
Checkbox toggle
/*
* jQuery - toggle checkboxes
* June 14, 2011 - Justin Rains
* http://www.justinrains.com/
*
* Dual licensed under 'Use it like you stole it'
* and 'I Don't Care'.
* Description: Toggle checkboxes. Get creative and put them on a timer! Fun!
* Example usage:
* $(':checkbox').cbToggle();