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
| /** | |
| * Setup Begin | |
| */ | |
| const pluginSlug = "hey-notify"; | |
| const backgroundColor = "#009bff"; // In HEX format | |
| const textColor = "#ffffff"; // In HEX format | |
| /** | |
| * Setup End | |
| */ |
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( 'edd_sl_get_time_based_pro_rated_upgrade_cost', 'my_prefix_edd_sl_time_based_prorate_limit', 10, 4 ); | |
| function my_prefix_edd_sl_time_based_prorate_limit( $prorated, $license_id, $old_price, $new_price ) { | |
| $price_difference = $new_price - $old_price; | |
| $protate_limit_percent = '50'; | |
| $prorate_limit_price = round( ( $price_difference / 100 ) * $prorate_limit_percent ); | |
| if ( $prorated < $prorate_limit_price ) { | |
| return round( $prorate_limit_price, edd_currency_decimal_filter() ); | |
| } |
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( 'beaver_tunnels', 'storefront_beaver_tunnels_actions' ); | |
| function storefront_beaver_tunnels_actions( $actions = array() ) { | |
| $actions[] = array( | |
| 'title' => __( 'Storefront', 'storefront' ), | |
| 'actions' => array( | |
| 'storefront_before_header', | |
| 'storefront_header', | |
| 'storefront_before_content', | |
| 'storefront_content_top', | |
| 'homepage', |