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
| /* | |
| * Cielo WooCommerce Webservice - Credit Card brand icons on input background | |
| * by Adriano Monecchi - Twitter: @dico_monecchi | |
| * Download Cielo Credit Card Icons sprite images bellow: | |
| * Cielo Credit Cards: https://cldup.com/UrOOO8uMsm.png | |
| * Cielo Debit Card: https://cldup.com/LrSaBXSM-Z.png | |
| * See Demo: http://pizzariameurancho.co.nf/home/checkout/ | |
| */ | |
| /* Cielo Credit Cards */ |
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 | |
| /** | |
| * Get user's first and last name, else just their first name, else their | |
| * display name. Defalts to the current user if $user_id is not provided. | |
| * | |
| * @param mixed $user_id The user ID or object. Default is current user. | |
| * @return string The user's name. | |
| */ | |
| function km_get_users_name( $user_id = null ) { |
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 | |
| /** | |
| * wc_direct_link_to_product_tabs | |
| * | |
| * Allows you to create custom URLs to activate product tabs by default, directly from the URL | |
| * ex: http://mysite.com/my-product-name#reviews | |
| */ | |
| function wc_direct_link_to_product_tabs() { | |
| if( is_product() ) { | |
| ?> |
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
| /*********************************************************************************************/ | |
| /** Get the total sum (money spent) of orders made by a user with a "complete" status in WooCommerce. This will output the current month's sum of all orders made by the customer. **/ | |
| /*********************************************************************************************/ | |
| <?php | |
| function current_customer_month_count( $user_id=null ) { | |
| if ( empty($user_id) ){ | |
| $user_id = get_current_user_id(); | |
| } |
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_filter( 'woocommerce_available_payment_gateways', 'filter_gateways', 1); | |
| function filter_gateways( $gateways ) { | |
| $method = WC()->session->get( 'chosen_shipping_methods' ); | |
| // get the value of the radio button on the checkout page | |
| if ( 'flat_rate:1' != $method[0] ) { | |
| unset( $gateways['paypal'] ); | |
| } |
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 | |
| /** | |
| * Custom nav walker | |
| * | |
| * Custom nav walker to assign icons to menu items. | |
| */ | |
| class FA_Icon_Walker extends Walker_Nav_Menu | |
| { | |
| /** |
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
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
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 echo file_get_contents( get_stylesheet_directory_uri() . '/img/icons/your-logo-file.svg' ); ?> |
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 | |
| /** | |
| * Shortcodes class | |
| * | |
| * @author Your Inspiration Themes | |
| * @package YITH WooCommerce Wishlist | |
| * @version 1.1.5 | |
| */ | |
| if ( ! defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly |