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 | |
/** | |
* Admin new order email | |
*/ | |
$order = new WC_order( $item_data->order_id ); | |
echo "= " . $email_heading . " =\n\n"; | |
$opening_paragraph = __( 'A new order has been made by %s. The details of the item are as follows:', 'custom-email' ); |
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 | |
/** | |
* Admin new order email | |
*/ | |
$order = new WC_order( $item_data->order_id ); | |
$opening_paragraph = __( 'A new order has been made by %s. The details of the item are as follows:', 'custom-email' ); | |
?> | |
<?php do_action( 'woocommerce_email_header', $email_heading ); ?> |
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 | |
/** | |
* Handles email sending | |
*/ | |
class Custom_Email_Manager { | |
/** | |
* Constructor sets up actions | |
*/ | |
public function __construct() { |
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 | |
//response generation function | |
$response = ""; | |
//function to generate response | |
function my_contact_form_generate_response($type, $message){ | |
global $response; |
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 | |
/** | |
* Contact form functionality | |
* Used within the loop | |
* @link https://developer.wordpress.org/reference/functions/wp_nonce_field/ | |
* @link https://codex.wordpress.org/Class_Reference/WP_Error | |
* @link https://developer.wordpress.org/reference/functions/wp_is_mobile/ | |
* @link https://developer.wordpress.org/reference/functions/wp_kses_data/ | |
* @link https://developer.wordpress.org/reference/functions/wp_remote_retrieve_response_code/ | |
* @link https://developer.wordpress.org/reference/functions/wp_get_referer/ |
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 | |
/** | |
* Contact form functionality | |
* Used within the loop | |
* @link https://developer.wordpress.org/reference/functions/wp_nonce_field/ | |
* @link https://codex.wordpress.org/Class_Reference/WP_Error | |
*/ | |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
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
/*****************************************************/ | |
/******** WOO CART / CHECKOUT / ACCOUNT PAGES ********/ | |
/*****************************************************/ | |
/*** MAIN FORMS BACKGROUND COLOR ***/ | |
.woocommerce table.shop_table, | |
.woocommerce form.checkout_coupon, | |
.woocommerce form.login, | |
.woocommerce form.register, | |
#add_payment_method #payment, |
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 // For implementation instructions see: https://aceplugins.com/how-to-add-a-code-snippet/ | |
/** | |
* Add link icons. | |
* | |
* Adds a external-link icon to external links only. | |
*/ | |
function ace_add_external_link_icon( ) { | |
wp_register_script( 'external-link-icon', false ); | |
wp_enqueue_script( 'external-link-icon' ); |
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
/** * Completely Remove jQuery From WordPress Admin Dashboard */ | |
add_action('wp_enqueue_scripts', 'no_more_jquery'); | |
function no_more_jquery(){ | |
wp_deregister_script('jquery'); | |
} |
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
/** * Install latest jQuery version 3.4.1. */ | |
if (!is_admin()) { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"), false); | |
wp_enqueue_script('jquery'); | |
} |