Date: [date]
Between us [company name] and you [customer name].
In short; neither of us will share any confidential information about each-other, by any means, with anyone else.
<?php | |
/** | |
* Make sure the function does not exist before defining it | |
*/ | |
if( ! function_exists( 'remove_class_filter' ) ){ | |
/** | |
* Remove Class Filter Without Access to Class Object | |
* | |
* In order to use the core WordPress remove_filter() on a filter added with the callback |
<?php | |
/** | |
* Gravity Wiz // Gravity Forms // Manual Entries | |
* | |
* Create entries manually for Gravity Forms. Adds an "Add New" button next to the page title on all entry-related pages. | |
* | |
* @version 1.2 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
<?php | |
/** | |
* @link | |
* @since 1.0.0 | |
* @package TODO | |
* | |
* @wordpress-plugin | |
* Plugin Name: Use MailHog | |
* Description: Configure WordPress on Valet to use MailHog | |
* Version: 1.0.0 |
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# http://ironco.de/bare-minimum-git/ | |
# ver 20150227 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
<?php | |
// Example - check for "in_stock" with a "Size" attribute | |
function show_instock_product_variations( $params, $class ) { | |
if ( 'tax/pa_size' == $params['facet_source'] && 'product' == get_post_type( $params['post_id'] ) ) { | |
WC()->api->includes(); | |
WC()->api->register_resources( new WC_API_Server( '/' ) ); | |
$response = WC()->api->WC_API_Products->get_product( $params['post_id'] ); | |
$product = $response['product']; |
<?php | |
class ACF_File_Custom { | |
private static $instance; | |
public static function register() { | |
if ( self::$instance == null ) { | |
self::$instance = new ACF_File_Custom(); | |
} | |
} |
<?php | |
class AWP_CTP_Model_Contact { | |
/** | |
* Gets an array of data for the object. Use this to get data to pass to the constructor. | |
* @param int $id | |
* @return array | |
*/ | |
public static function get_data( $id ) { |
<?php | |
$contact = AWP_CTP_Model_Contact::get_instance( get_the_ID() ); | |
?> | |
<article id="post-<?php echo $contact->get_ID(); ?>"> | |
<?php if ( $contact->get_featured_image_url() ) : ?> | |
<div class="ecc-contact-image"> | |
<img class="th" src="<?php echo $contact->get_featured_image_url(); ?>" alt="<?php echo $contact->get_display_title(); ?>" title="<?php echo $contact->get_display_title(); ?>" /> |
#------------------------------------------ | |
# PANTHEON DEVELOPMENT WORKFLOW v1.01 | |
# Using the Pantheon CLI (terminus) v0.71 | |
#------------------------------------------ | |
# Authenticate with Pantheon. The first step, most of the time. | |
# This is a little insecure, as it lists your password here. But it's convenient. | |
alias pdw-auth='terminus auth login YOURPANTHEONEMAILADDRESS --password=YOURPANTHEONPASSWORD' | |
# Update your local Pantheon site aliases |