Skip to content

Instantly share code, notes, and snippets.

View nucab's full-sized avatar
🏠
Working from home

Noah U nucab

🏠
Working from home
  • Philippines
  • 05:29 (UTC +08:00)
  • LinkedIn in/nucab
View GitHub Profile
<?php
// Load our function when hook is set
add_action( 'pre_get_posts', 'rc_modify_query_get_posts_by_date' );
// Modify the current query
function rc_modify_query_get_posts_older_than_today( $query ) {
// Check if on frontend and main query is modified
if( ! is_admin() && $query->is_main_query() ) {
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
<?php the_widget( 'WC_Widget_Product_Categories', 'title=&hierarchical=1&orderby=name&dropdown=1' ); ?>
<?php the_widget( 'WC_Widget_Product_Categories', 'title=&hierarchical=1&orderby=name&dropdown=1' ); ?>
<?php the_widget( 'WC_Widget_Product_Categories', 'title=&hierarchical=1&orderby=name&dropdown=1' ); ?>
<?php
/*
Plugin Name: Disable W3 Total Cache Nags
Version: 1.0
Author: Blue Liquid Designs
*/
add_action( 'wp_loaded', 'bld_disable_w3_total_cache_nags' );
function bld_disable_w3_total_cache_nags()