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 | |
| /** | |
| * 使用方式:在頁面中建立 "退貨政策" 後,從 [自訂] 中選取退貨政策的頁面,便會出現在結帳頁中。 | |
| * 在 WooCommerce 結帳頁顯示內容。 | |
| */ | |
| if ( ! function_exists( 'hyc_refund' ) ) { | |
| function hyc_refund() { | |
| $pid = get_theme_mod( 'hyc_refund_policy' ); | |
| if ( $pid ) { | |
| ?> |
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 | |
| /** | |
| * Language detector | |
| * This global variable is used to detect the language that the user's browser is using. | |
| * Should be passed to step to get the specified language's MO file. | |
| */ | |
| function applemint_locale( $locale ) { | |
| //Create a global variable so that other functions and hooks can use the variable to determine the language. | |
| global $am_lang; |
OlderNewer