Skip to content

Instantly share code, notes, and snippets.

<?php get_header(); ?>
<?php // $Id: archive-pati_videos.php 4154 2016-12-05 10:54:02Z damien $ ?>
<div id="main-content">
<div class="container">
<div id="content-area" class="clearfix">
<div id="left-area">
<?php if (is_user_logged_in()) { ?>
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
@damiencarbery
damiencarbery / silent-debugging-for-wc.php
Last active September 13, 2021 09:49
Silent Debugging for WooCommerce - Debug WooCommerce without admin knowing.
<?php
/*
Plugin Name: Silent Debugging for WooCommerce
Plugin URI: https://www.damiencarbery.com/2017/04/silently-debugging-woocommerce/
Description: Debug WooCommerce without admin knowing.
Version: 0.2
WC tested up to: 5.1.0
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
License: GPL-2.0+
@damiencarbery
damiencarbery / log-emails-for-debugging.php
Last active April 15, 2017 21:03
Log WordPress emails to aid debugging.
<?php
/*
Plugin Name: Log Emails for Debugging
Plugin URI: http://www.damiencarbery.com
Description: Log emails sent.
Author: Damien Carbery
Version: $Revision: 4213 $
$Id: log-emails-for-debugging.php 4213 2017-04-11 20:50:44Z damien $
*/
@damiencarbery
damiencarbery / enterprise-pro-extra-home-widget-area.php
Created April 18, 2017 23:04
Extra widget area on home page for Enterprise Pro (question asked in Genesis WordPress group on Facebook).
<?php
/*
Plugin Name: Enterprise Pro - Extra Widget Area
Plugin URI: https://www.facebook.com/groups/genesiswp/permalink/1474446209273238/
Description: Extra widget area on home page for Enterprise Pro (question asked in Genesis WordPress group on Facebook).
Author: Damien Carbery
Author URI: http://www.damiencarbery.com
Version: 0.1
*/
<?php
/*
Plugin Name: NCI.ie
Plugin URI: http://www.damiencarbery.com
Description: Customisations of Genesis Sample theme for NCI.ie.
Author: Damien Carbery
Version: 0.1
$Id: n-c-i.php 4192 2017-01-30 11:18:28Z damien $
*/
@damiencarbery
damiencarbery / mu-debug-info.php
Created April 25, 2017 13:43
Add debug information as a html comment for the specified IP address.
<?php
/*
Plugin Name: Debug Information
Plugin URI: http://www.damiencarbery.com
Description: Add debug information as a html comment for the specified IP address.
Author: Damien Carbery
Version: $Revision: 4185 $
$Id: mu-debug-info.php 4185 2017-01-23 17:09:47Z damien $
*/
@damiencarbery
damiencarbery / archive-pati_videos.php
Created April 28, 2017 11:43
PATI Videos CPT - Archive problems
<?php get_header(); ?>
<?php // $Id: archive-pati_videos.php 4154 2016-12-05 10:54:02Z damien $ ?>
<div id="main-content">
<div class="container">
<div id="content-area" class="clearfix">
<div id="left-area">
<?php if (is_user_logged_in()) { ?>
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
@damiencarbery
damiencarbery / multisite-plugins-activated.php
Created May 1, 2017 20:44
List of active plugins on a Multisite installation.
<?php
/*
Plugin Name: Multisite Plugins Activate
Plugin URI: http://www.damiencarbery.com
Description: List of active plugins on a Multisite installation.
Author: Damien Carbery
Version: 0.1
$Id: multisite-plugins-activated.php 3308 2016-01-20 11:04:27Z damien $
*/
@damiencarbery
damiencarbery / disable-cf7.php
Last active February 22, 2020 06:04
Disable Contact Form 7 plugin except for certain pages.
<?php
/*
Plugin Name: Disable CF7 plugin
Plugin URI: http://www.damiencarbery.com
Description: Disable Contact Form 7 plugin except for certain pages.
Author: Damien Carbery
Version: $Revision: $
$Id: $
*/
@damiencarbery
damiencarbery / disable-simple-social-icons-css.php
Created May 9, 2017 16:48
Disable the CSS added to <head> by Simple Social Icons plugin.
<?php
add_action( 'wp_head', 'afp_wp_head_checks', 1 );
function afp_wp_head_checks() {
global $wp_filter;
$action = 'wp_head';
$priority = 10;
$function = 'css';
foreach ( $wp_filter[ $action ]->callbacks[ $priority ] as $callback_id => $callback_info ) {
if ( is_array( $callback_info ) ) {