This file contains 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: TH Shipping Options | |
Plugin URI: NA | |
Description: TH Shipping Options plugin | |
Version: 1.0.0 | |
Author: Vj | |
Author URI: www.wooforce.com | |
*/ |
This file contains 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( 'mce_external_plugins', 'my_theme_mce_external_plugins' ); | |
function my_theme_mce_external_plugins( $plugin_array ) { | |
$plugin_array['typekit'] = get_template_directory_uri() . '/typekit.tinymce.js'; | |
return $plugin_array; | |
} |
This file contains 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 | |
function is_user_logged_in() { | |
$loggedin = false; | |
foreach ( (array) $_COOKIE as $cookie => $value ) { | |
if ( stristr( $cookie, 'wordpress_logged_in_' ) ) { | |
$loggedin = true; | |
} | |
} | |
return $loggedin; | |
} |
This file contains 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
Running 470.86 km ████████████▌░░░░░░ 10.93/h | |
Cycling 239.39 km ██████▍░░░░░░░░░░░░ 25.15/h |
OlderNewer