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_action( 'ministries_before_archive_content','ministries_head', 10 ); | |
add_action( 'ministries_before_archive_content','custom_ministries_head', 10 ); | |
function custom_ministries_head () { | |
?> | |
<div class="ministries-head"> | |
<h5><?php echo _e( 'Ministries', 'bethlehem-extension' ); ?></h5> | |
<?php ministries_tab_pane(); ?> | |
</div> | |
<?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
<?php global $product, $yith_woocompare; ?> | |
<div class="container"> | |
<?php if ( !empty( $products ) ) : ?> | |
<div class="section section-page-title inner-xs"> | |
<div class="page-header"> | |
<h2 class="page-title"> | |
<?php echo the_title(); ?> | |
</h2> | |
<p class="page-subtitle"><a id="product-comparison-page-clear-all" href="<?php echo $yith_woocompare->obj->remove_product_url('all') ?>" data-product_id="all" class="clear-all"><?php _e( 'Clear all', 'mediacenter' ) ?></a></p> | |
</div> |
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 | |
/** | |
* Wishlist page template | |
* | |
* @author Your Inspiration Themes | |
* @package YITH WooCommerce Wishlist | |
* @version 2.0.12 | |
*/ | |
?> |
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( 'sermons_post_type_labels', 'custom_sermons_post_type_labels' ); | |
function custom_sermons_post_type_labels() { | |
$sermons_post_type_labels = array( | |
'name' => _x( 'Episodes', 'post type general name', 'bethlehem-extension' ), | |
'singular_name' => _x( 'Episode', 'post type singular name', 'bethlehem-extension' ), | |
'add_new' => _x( 'Add New', 'block', 'bethlehem-extension' ), | |
'add_new_item' => __( 'Add New', 'bethlehem-extension' ), | |
'edit_item' => __( 'Edit', 'bethlehem-extension' ), | |
'new_item' => __( 'New', 'bethlehem-extension' ), |
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 payment_gateway_disable_state( $available_gateways ) { | |
global $woocommerce; | |
$state = $woocommerce->customer->get_state(); | |
if ( isset( $available_gateways['cod'] ) && ! in_array( $state, array( 'AL', 'AK', 'CA' ) ) ) { | |
unset( $available_gateways['cod'] ); | |
} | |
return $available_gateways; |
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 | |
add_action( 'wp_enqueue_scripts', 'uc_enqueue_child_script' ); | |
function uc_enqueue_child_script() { | |
global $unicase_version; | |
if( apply_filters( 'unicase_load_all_minifed_js', true ) ) { | |
$dep = 'unicase-all'; | |
} else { | |
$dep = 'unicase-js'; | |
} | |
wp_enqueue_script( 'uc-child-script', get_stylesheet_directory_uri() . '/assets/js/uc-child-scripts.js', array( $dep ), $unicase_version, 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_action( 'init', 'ec_child_remove_availability', 20 ); | |
function ec_child_remove_availability() { | |
remove_action( 'woocommerce_single_product_summary', 'electro_template_loop_availability', 10 ); | |
} |
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
if ( ! function_exists( 'electro_brands_list_element' ) ) : | |
function electro_brands_list_element( $atts, $content = null ){ | |
extract(shortcode_atts(array( | |
'has_no_products' => false, | |
'orderby' => 'title', | |
'order' => 'asc', | |
), $atts)); | |
$taxonomy_args = array( | |
'orderby' => $orderby, |
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_action( 'init', 'ec_child_remove_loop_action_buttons', 20 ); | |
function ec_child_remove_loop_action_buttons() { | |
remove_action( 'woocommerce_single_product_summary', 'electro_loop_action_buttons', 15 ); | |
} |
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( 'has_electro_mobile_header', '__return_false' ); | |
add_filter( 'electro_enable_handheld_footer_bar', '__return_false' ); |
OlderNewer