View text_custom_fonts.php
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 | |
/** | |
* Register a custom font with Text Preview | |
*/ | |
function prefix_register_custom_font( $fonts ) { | |
$fonts['font-1'] = 'Brush Script'; | |
$fonts['font-2'] = 'Arial'; | |
$fonts['font-3'] = 'Mermaid'; | |
$fonts['font-4'] = 'Angelina'; |
View group_title_html.php
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 my_group_filter_title( $group_title, $group, $group_id ) { | |
$group_title = pewc_get_group_title( $group_id, $group, true ); | |
return '<h2>' . $group_title . '</h2>'; | |
} | |
add_filter( 'pewc_filter_group_title', 'my_group_filter_title', 10, 3 ); |
View wcrp_rental_products.php
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( 'pewc_filter_product_extra_groups', function( $product_extra_groups, $post_id) { | |
if ( is_cart() || is_checkout() ) { | |
return $product_extra_groups; | |
} | |
if( ! is_object( wc_get_product( $post_id ) ) ) { | |
return $product_extra_groups; | |
} |
View wcdpp_tutorlms.php
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 | |
/** | |
* This function updates a 'tutor_enrolled' post type after it is created by a scheduled order. Changing the status prevents them from being counted towards totals. | |
*/ | |
function wcdpp_tutor_after_enrolled( $course_id, $user_id, $enrolled_id ) { | |
// get the order_id attached to this tutor_enrolled record | |
$order_id = get_post_meta( $enrolled_id, '_tutor_enrolled_by_order_id', true ); | |
if ( $order_id ) { | |
// check if order is a scheduled order |
View pewc_polylang.php
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 | |
/** | |
* Duplicates groups and fields for translated products. Original product should have duplicated groups and fields by this time. | |
*/ | |
function pewc_product_duplicate_polylang( $duplicate, $product ) { | |
// check that this function exists | |
if ( function_exists( 'pll_get_post_translations' ) ) { | |
$new_id = $duplicate->get_id(); | |
$old_id = $product->get_id(); | |
$new_trs = pll_get_post_translations( $new_id ); |
View open_all_accordions.php
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 | |
/** | |
* Set all groups to open (or closed ) in an accordion | |
*/ | |
function prefix_filter_initial_accordion_states( $state, $post_id ) { | |
// return 'closed'; // Uncomment this out and comment the line below to set all groups to closed | |
return 'open'; | |
} | |
add_filter( 'pewc_filter_initial_accordion_states', 'prefix_filter_initial_accordion_states', 10, 2 ); |
View image_preview_mobile.css
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
@media (max-width: 600px) { | |
.wcpauau-modal-footer { | |
display: flex; | |
width: 100%; | |
justify-content: space-between; | |
} | |
.wcpauau-modal-footer .button { | |
font-size: 14px !important; | |
} | |
ul.pewc-product-extra-groups{ |
View custom_order_email_wc.php
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 | |
/** | |
* Quote request email | |
*/ | |
defined( 'ABSPATH' ) || exit; | |
/* | |
* @hooked WC_Emails::email_header() Output the email header | |
*/ |
View pending_user_notice.php
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 | |
/** | |
* Translate Pending User Notice | |
*/ | |
function pending_user_notice( $notice ) { | |
$notice= "Käyttäjätilin tyyppi"; /** Translation here **/ | |
return $notice; | |
} |
View fee_discount_label.php
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 fee_discount_label( $fields ) { | |
$fields = 'Bulk order discount'; /** Change label test **/ | |
return $fields; | |
} | |
add_filter( 'wcfad_cart_discount_label' , 'fee_discount_label' ); |
NewerOlder