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 logo to the header | |
function header_logo() { | |
/* | |
* When manually building a site title (or tagline), you have to consider SEO. | |
* On the homepage of your site, and other select pages, you'll want your title | |
* to be wrapped in H1 tags. On other pages, though, like a single post article, | |
* wrapping your title and tagline in a <span> or <p> is perfectly fine because | |
* the article title is now the most important headline on the page. | |
* | |
* So what this code does is first present a conditional saying: |
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 | |
/** 404.php | |
* | |
* custom layout for 404 error pages -- place this file in the | |
* root of your child theme and WordPress will use it instead of the | |
* original 404 template. Edit this file as you wish! | |
*/ | |
$options_structure = get_option('vol_structure_options'); |
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 | |
/** | |
* The Template for displaying all single posts. | |
*/ | |
get_header(); ?> | |
<div id="primary" class="content-area"> | |
<main id="main" class="site-main" role="main"> |
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
= v1.2.4 = | |
* added: support for EDD item quanities (EDD v2.2) | |
* tweaked: improved translation functions | |
* removed: search filter - search forms will now return results for all post types by default | |
= v1.2.3 = | |
* tweaked: replaced deprecated EDD function edd_get_cart_amount() with edd_get_cart_subtotal() |
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 | |
/** | |
* replace original Categories / Tags widget with custom | |
*/ | |
function replace_edd_categories_tags_widget() { | |
unregister_widget( 'edd_categories_tags_widget' ); | |
register_widget( 'custom_edd_categories_tags_widget' ); | |
} | |
add_action( 'widgets_init', 'replace_edd_categories_tags_widget' ); |
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 global $post; ?> | |
<table id="edd_checkout_cart" <?php if ( ! edd_is_ajax_disabled() ) { echo 'class="ajaxed"'; } ?>> | |
<thead> | |
<tr class="edd_cart_header_row"> | |
<?php do_action( 'edd_checkout_table_header_first' ); ?> | |
<th class="edd_cart_item_name"><?php _e( 'Item Name', 'edd' ); ?></th> | |
<th class="edd_cart_item_price"><?php _e( 'Item Price', 'edd' ); ?></th> | |
<th class="edd_cart_actions"><?php _e( 'Actions', 'edd' ); ?></th> | |
<?php do_action( 'edd_checkout_table_header_last' ); ?> | |
</tr> |
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 // DON'T COPY THIS LINE | |
if ( class_exists( 'EDD_Front_End_Submissions' ) ) { | |
function custom_vendor_dashboard_menu() { | |
$menu_items = array(); | |
// Dashboard tab | |
$menu_items['home'] = array( | |
"icon" => "home", | |
"task" => array( 'dashboard', '' ), |
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 // DO NOT COPY THIS LINE | |
/** | |
* remove default billing details form fields | |
*/ | |
function custom_edd_remove_default_fields() { | |
remove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields' ); | |
} | |
add_action( 'init', 'custom_edd_remove_default_fields' ); |
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 | |
function check_for_only_one_subscription_purchase_at_a_time( $item ) { | |
$cart_items = edd_get_cart_contents(); | |
if ( $cart_items ) { | |
$a = array_values( $item ); | |
foreach ( $a as $k => $v ) { | |
if ( is_array( $v ) ) { |
OlderNewer