This document explains how to use the automated translation system powered by Potomatic for WP Fusion.
- Install dependencies:
npm install
This document explains how to use the automated translation system powered by Potomatic for WP Fusion.
npm install
| <?php | |
| /** | |
| * Show EDD discount name instead of code in checkout summary. | |
| */ | |
| function my_custom_edd_discount_display( $discount_html, $discount ) { | |
| $discount = edd_get_discount_by_code( $discount ); | |
| if ( ! $discount ) { | |
| return $discount_html; |
| <?php | |
| /** | |
| * Redirects users back to the previous page when accessing a restricted LearnDash lesson | |
| * | |
| * @param string $redirect_url The redirect URL | |
| * @param int $post_id The post ID | |
| * @return string The modified redirect URL | |
| */ | |
| function my_learndash_redirect( $redirect_url, $post_id ) { |
| <?php | |
| // Excuse the mess :D | |
| // we also make use of the [purchase_history] and [edd_subscriptions] shortcodes | |
| function edd_account_content_hook_licenses( $output ) { | |
| ob_start(); | |
| ?> |