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 | |
/** | |
* Content wrappers | |
* | |
* @author WooThemes | |
* @package Sensei/Templates | |
* @version 1.0.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
/** | |
* Header Template | |
* | |
* Here we setup all logic and XHTML that is required for the header section of all screens. | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ |
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
add_action( 'woothemes_add_javascript' , 'woo_load_featured_slider_on_all_other_pages_js' ); | |
function woo_load_featured_slider_on_all_other_pages_js() { | |
if ( !is_home() ) { | |
//Slider settings | |
$settings = array( | |
'featured_speed' => '7', | |
'featured_hover' => 'true', | |
'featured_action' => 'true', |
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
add_action( 'woocommerce_admin_order_data_after_order_details', 'woo_show_order_payment_url' ); | |
function woo_show_order_payment_url( $order ) { | |
echo '<a href="' . $order->get_checkout_payment_url() . '" title="' . __( 'Get order payment URL', 'your-domain' ) . '" target="_blank">' . __( 'Get order payment URL', 'your-domain' ) . '</a>'; | |
} |
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
add_filter( 'woocommerce_product_tabs', 'woo_rename_vendor_tab' ); | |
function woo_rename_vendor_tab( $tabs ) { | |
if ( isset( $tabs['vendor'] ) ) { | |
$tabs['vendor']['title'] = __( 'Your Label Here' ); | |
} | |
return $tabs; | |
} |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* The Template for displaying the sensei login form | |
* | |
* Override this template by copying it to yourtheme/sensei/user/login-form.php | |
* | |
* @author WooThemes | |
* @package Sensei/Templates |
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
/** | |
* Display or return HTML-formatted testimonials. | |
* @param string/array $args Arguments. | |
* @since 1.0.0 | |
* @return string | |
*/ | |
function woothemes_testimonials ( $args = '' ) { | |
global $post; | |
$defaults = apply_filters( 'woothemes_testimonials_default_args', array( |
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
function wc_hide_category_archive() { | |
$hide_category = 'category-slug'; //Change this with your category slug | |
if ( ! is_user_logged_in() && is_product_category( $hide_category ) ) { | |
wp_redirect( home_url() ); | |
exit; | |
} elseif ( is_product() && ! is_user_logged_in() ) { | |
global $product; | |
$taxonomy = 'product_cat'; |
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 | |
add_filter( 'woocommerce_email_recipient_customer_invoice', 'wc_send_invoice_multiple_addresses' ); | |
function wc_send_invoice_multiple_addresses( $recipient ) { | |
$recipient = rtrim( trim( $recipient ), ',' ); | |
$new_recipients = array( | |
'yourmeail@domain.com', | |
'onemore@anotherdomain.com', | |
//Add more email addresses if needed | |
); |
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
function wcs_shipwire_valid_order_statuses_for_export( $statuses ) { | |
$statuses[] = 'completed'; | |
return $statuses; | |
} | |
add_filter( 'wc_shipwire_valid_order_statuses_for_export', 'wcs_shipwire_valid_order_statuses_for_export' ); |