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
<script> | |
jQuery( document ).ready( function ( $ ) { | |
$(document).on( 'countdown_expire', function() { | |
Object.keys(localStorage) | |
.filter(key => key.endsWith('evergreen_interval')) | |
.forEach(key => localStorage | |
.removeItem((key))) | |
Object.keys(localStorage) |
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 | |
// Kylas Integration | |
function kylasIntegration( $orderdata,$leadtype,$groupid) { | |
//echo "=============";echo "<pre>";print_r($orderdata);echo "</pre>";die; | |
if($leadtype=='abandoned'){ | |
$leadtype=(int)1072133; | |
} | |
if($leadtype=='enrolled'){ | |
$leadtype=(int)1072132; | |
} |
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 | |
add_action('user_register', 'kr_alter_password', 10, 1); | |
function kr_alter_password($user_id) { | |
// user email. $user return full user info | |
// new entered password (plain text) | |
if ( $user_id ) { | |
wp_set_password( "[your-password]", $user_id ); | |
} | |
} |
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
function swp_add_custom_javascript() { | |
?> | |
<script> | |
// Replace Javascript Codes Here | |
</script> | |
<?php | |
} | |
add_action('wp_head', 'swp_add_custom_javascript'); |
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
function mu_hide_plugins_network( $plugins ) { | |
// let's hide akismet | |
if( in_array( 'akismet/akismet.php', array_keys( $plugins ) ) ) { | |
unset( $plugins['akismet/akismet.php'] ); | |
} | |
return $plugins; | |
} | |
add_filter( 'all_plugins', 'mu_hide_plugins_network' ); |