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 this to your theme's functions.php to move the variation description display to a different location | |
| * on the product page. | |
| */ | |
| add_action('plugins_loaded', 'move_variation_description', 50); | |
| function move_variation_description(){ | |
| // Remove the hook from the original location |
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 | |
| /** | |
| * Plugin Name: WooCommerce Subscriptions Remove Deprecation Handlers | |
| * Plugin URI: https://support.woothemes.com/hc/en-us/articles/205214466 | |
| * Description: Do not load backward compatibility support in Subscriptions 2.0. | |
| * Author: Prospress Inc. | |
| * Version: 1.0 | |
| * Author URI: http://prospress.com | |
| */ |
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 | |
| /** | |
| * Plugin Name: WooCommerce Subscriptions - Preserve Billing Schedule | |
| * Plugin URI: | |
| * Description: By default, WooCommerce Subscriptions will calculate the next payment date for a subscription from the time of the last payment. This plugin changes it to preserve the original schedule and calculate the next payment date from the scheduled payment date, not the time the payment was actually processed. | |
| * Author: Prospress Inc. | |
| * Author URI: http://prospress.com/ | |
| * Version: 1.0 | |
| * | |
| * Copyright 2016 Prospress, Inc. (email : [email protected]) |
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 | |
| /** | |
| * Plugin Name: WooCommerce Subscriptions - Display Failed Status | |
| * Plugin URI: | |
| * Description: Prepend "With Failure" to subscriptions with the "on-hold" status and the last renewal order with the "failed" status. | |
| * Author: Prospress Inc. | |
| * Author URI: http://prospress.com/ | |
| * Version: 1.0 | |
| * | |
| * Copyright 2016 Prospress, Inc. (email : [email protected]) |
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( 'genesis_admin_before_metaboxes', 'wpb_remove_unwanted_genesis_metaboxes' ); | |
| /** | |
| * Remove various metaboxes of Genesis Theme Settings | |
| * More metaboxes appear see @filesource genesis/admin/theme-settings.php | |
| * @param metaboxes() | |
| * @see https://fewerthanthree.com/code-snippets/remove-blog-page-settings-genesis-theme-settings/ | |
| * | |
| */ |
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 | |
| // place the following code in your theme's functions.php file | |
| // Add a second password field to the checkout page. | |
| add_action( 'woocommerce_checkout_init', 'wc_add_confirm_password_checkout', 10, 1 ); | |
| function wc_add_confirm_password_checkout( $checkout ) { | |
| if ( get_option( 'woocommerce_registration_generate_password' ) == 'no' ) { | |
| $checkout->checkout_fields['account']['account_password2'] = array( | |
| 'type' => 'password', |
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 wc_ninja_remove_password_strength() { | |
| if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) { | |
| wp_dequeue_script( 'wc-password-strength-meter' ); | |
| } | |
| } | |
| add_action( 'wp_print_scripts', 'wc_ninja_remove_password_strength', 100 ); |
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_theme_support( 'custom-logo', array( | |
| 'height' => 240, // set to your dimensions | |
| 'width' => 240, | |
| 'flex-height' => true, | |
| 'flex-width' => 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
| <?php //<~ don't add me in | |
| add_action( 'woocommerce_before_single_product', 'themeprefix_woocommerce_template_product_description', 20 ); | |
| /** | |
| * Add product description above product | |
| * Output description tab template using 'woocommerce_before_single_product' hook | |
| */ | |
| function themeprefix_woocommerce_template_product_description() { | |
| wc_get_template( 'single-product/tabs/description.php' ); |