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( 'around_wc_order_item_name' ) ) { | |
function around_wc_order_item_name( $name, $item ){ | |
$variation_id = $item['variation_id']; | |
if( $variation_id > 0 ) { | |
$product_id = $item['product_id']; | |
$_product = wc_get_product( $product_id ); | |
$product_name = $_product->get_title(); | |
$_name = $product_name; | |
$variation_name = str_replace( $product_name . ' -', '', $item->get_name() ); | |
$_name .= '<span class="your-class">' . $variation_name . '</span>'; |
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( 'jobhunt_template_company_logo' ) ) { | |
function jobhunt_template_company_logo() { | |
?> | |
<div class="company-logo"> | |
<a href="<?php the_company_permalink(); ?>"> | |
<?php the_company_logo( 'medium' ); ?> | |
</a> | |
</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
function masvideos_structured_data_video_object_upload_date( $data, $post_object ) { | |
$data['uploadDate'] = $post_object->get_date_created()->date( 'c' ); | |
return $data; | |
} | |
add_filter( 'masvideos_structured_data_movie', 'masvideos_structured_data_video_object_upload_date', 10, 2 ); | |
add_filter( 'masvideos_structured_data_video', 'masvideos_structured_data_video_object_upload_date', 10, 2 ); | |
add_filter( 'masvideos_structured_data_tv_show', 'masvideos_structured_data_video_object_upload_date', 10, 2 ); | |
add_filter( 'masvideos_structured_data_episode', 'masvideos_structured_data_video_object_upload_date', 10, 2 ); |
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( 'jh_child_make_sidebar_filters_collapse_close' ) ) { | |
function jh_child_make_sidebar_filters_collapse_close() { | |
ob_start(); ?> | |
(function ($) { | |
"use strict"; | |
$(document).ready(function () { | |
$( '.widget_jobhunt_wpjm_layered_nav .widget-title, .widget_jobhunt_wpjmr_layered_nav .widget-title, .widget_jobhunt_wpjmc_layered_nav .widget-title, .widget_jobhunt_wpjm_date_filter .widget-title, .widget_jobhunt_wpjmr_date_filter .widget-title, .widget_jobhunt_wpjmc_date_filter .widget-title' ).each( function( index ) { | |
if( index <= 2 ) { | |
$( this ).parent().addClass( 'closed' ); | |
} |
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( 'front_child_customize_customer_story_slug' ) ) { | |
function front_child_customize_customer_story_slug( $args ) { | |
if( isset( $args['rewrite'] ) && isset( $args['rewrite']['slug'] ) ) { | |
$args['rewrite']['slug'] = 'team'; | |
} | |
return $args; | |
} | |
} | |
add_filter( 'front_extensions_register_post_type_customer_story', 'front_child_customize_customer_story_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
if ( ! function_exists( 'cartzilla_dokan_dashboard_page_title' ) ) { | |
function cartzilla_dokan_dashboard_page_title( $user_id = null ) { | |
if ( ! $user_id ) { | |
$user_id = dokan_get_current_user_id(); | |
} | |
$user_data = get_userdata( $user_id ); | |
$user_registered = $user_data->user_registered; | |
$store_info = dokan_get_store_info( $user_id ); | |
$storename = isset( $store_info['store_name'] ) && ! empty( $store_info['store_name'] ) ? $store_info['store_name'] : ( is_object( $user_data ) ? $user_data->display_name : '' ); |
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( 'wc_customize_my_account_orders_limit' ) ) { | |
function wc_customize_my_account_orders_limit( $args ) { | |
// Set the posts per page | |
$args['posts_per_page'] = 6; | |
return $args; | |
} | |
} | |
add_filter( 'woocommerce_my_account_my_orders_query', 'wc_customize_my_account_orders_limit' ); |
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
@media (max-width: 767.98px) { | |
.topbar { | |
display: none !important; | |
} | |
} |
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( 'tokoo_header_handheld' ) ) { | |
/** | |
* Displays HandHeld Header | |
*/ | |
function tokoo_header_handheld() { | |
if( tokoo_has_handheld_header() ) : ?> | |
<div class="handheld-only"> | |
<?php tokoo_top_bar(); ?> | |
<div class="container"> |
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 ( 'jh_child_custom_header_post_a_job_button_url' ) ) { | |
function jh_child_custom_header_post_a_job_button_url( $url ) { | |
return "#"; //replace # with your url | |
} | |
} | |
add_filter( 'jobhunt_header_post_a_job_button_url', 'jh_child_custom_header_post_a_job_button_url' ); |
NewerOlder