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 | |
| class ACF_File_Custom { | |
| private static $instance; | |
| public static function register() { | |
| if ( self::$instance == null ) { | |
| self::$instance = new ACF_File_Custom(); | |
| } | |
| } |
| <?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']; |
| # ----------------------------------------------------------------- | |
| # .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 | |
| /** | |
| * @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 |
| <?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 <[email protected]> | |
| * @license GPL-2.0+ | |
| * @link http://gravitywiz.com/... |
| <?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 |
| import React from "react"; | |
| import Counter from "./Counter"; | |
| const App = () => { | |
| return ( | |
| <div className="App"> | |
| <Counter initialCount={100} /> | |
| </div> | |
| ); | |
| }; |
| cd ~/ | |
| mkdir .localhost-ssl | |
| sudo openssl genrsa -out ~/.localhost-ssl/localhost.key 2048 | |
| sudo openssl req -new -x509 -key ~/.localhost-ssl/localhost.key -out ~/.localhost-ssl/localhost.crt -days 3650 -subj /CN=localhost | |
| sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/.localhost-ssl/localhost.crt | |
| npm install -g http-server | |
| echo " | |
| function https-server() { |