This file contains hidden or 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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
</head> | |
<body> | |
<h1>REST API Application</h1> | |
<?php |
This file contains hidden or 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
// Pass details to Stripe so Stripe receipts are triggered | |
add_filter( 'wc_stripe_send_stripe_receipt', 'wc_trigger_stripe_receipts' ); | |
function wc_trigger_stripe_receipts() { | |
return true; | |
} |
This file contains hidden or 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
add_filter( 'wc_shipment_tracking_get_providers', 'custom_shipment_tracking' ); | |
function custom_shipment_tracking( $providers ) { | |
unset($providers['Australia']); | |
unset($providers['Austria']); | |
unset($providers['Brazil']); | |
unset($providers['Belgium']); | |
unset($providers['Canada']); | |
unset($providers['Czech Republic']); |
This file contains hidden or 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
/** | |
* Remove USPS Flat rate envelopes from the available options | |
* Once added the customer will not see any rates for envelopes | |
* Only Small, Medium, and Large Flat Rate boxes will be used | |
*/ | |
add_filter( 'usps_flat_rate_boxes', 'custom_usps_flat_rate_boxes' ); | |
function custom_usps_flat_rate_boxes( $flat_rate_boxes ) { | |
unset($flat_rate_boxes["d29"]); | |
unset($flat_rate_boxes["d30"]); |
This file contains hidden or 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
.form-row { | |
position: relative; | |
margin-bottom: 25px; | |
} | |
.form-row label { | |
color: #7bae23; | |
background: #f4f4f4; | |
border-radius: 3px 0 0 3px; | |
border-style: solid; |
This file contains hidden or 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(); ?> | |
<div role="main" class="main"> | |
<section class="page-top"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<ul class="breadcrumb"> | |
<li><a href="#">Home</a></li> |
This file contains hidden or 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: Custom Post Types | |
Description: Add on plugin that adds custom post types to theme | |
Version: 1.0 | |
Plugin URI: http://yourwebsiteengineer.com | |
Author: Dustin Hartzler | |
*/ | |
#----------------------------------------------------------------- |
This file contains hidden or 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
function customise_product_brand_slug ( $tax ) { | |
$tax['rewrite']['slug'] = 'artists'; | |
$tax['labels']['name'] = 'Artists'; | |
$tax['labels']['add_new_item'] = 'Add New Artist'; | |
$tax['labels']['search_items'] = 'Search Artists'; | |
$tax['labels']['all_items'] = 'All Artists'; | |
$tax['labels']['edit_item'] = 'Update Artist'; | |
$tax['labels']['update_item'] = 'Update Artist'; | |
$tax['labels']['new_item_name'] = 'New Artist Name'; | |
return $tax; |
This file contains hidden or 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
function customise_product_brand_slug ( $tax ) { | |
$tax['rewrite']['slug'] = 'artists'; | |
$tax['labels']['name'] = 'Brands'; | |
return $tax; | |
} | |
add_filter( 'register_taxonomy_product_brand', 'customise_product_brand_slug' ); |
This file contains hidden or 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
function my_custom_admin_styles() { | |
?> | |
<style type="text/css"> | |
.wp-customizer #customize-info, #customize-theme-controls>ul>.accordion-section#accordion-panel-sprh_panel { | |
display: inherit !important; | |
} | |
</style> | |
<?php | |
} | |
add_action('admin_head', 'my_custom_admin_styles'); |
NewerOlder