Skip to content

Instantly share code, notes, and snippets.

// Increase password reset link expiration time
function wpen_increase_password_reset_link_expiration($expiration_time, $user_id, $action) {
// Set the desired expiration time in seconds (e.g., 3 days = 259200 seconds)
$expiration_time = 259200; // Change this value as per your requirement
return $expiration_time;
}
add_filter('password_reset_expiration', 'wpen_increase_password_reset_link_expiration', 10, 3);
jQuery(document).on('divi_filter_before', function(){
// ADD YOUR CODE HERE
});
@media (min-width: 981px) {
#et-top-navigation .menu-item .sub-menu {display: none !important;}
}
add_action( 'after_setup_theme', function() {
add_filter( 'german_market_add_woocommerce_de_templates_force_original', function( $return_original, $template_name ) {
if ( 'checkout/form-checkout.php' === $template_name ) {
$return_original = true;
}
return $return_original;
}, 10, 2 );
.dmach-repeater-table {
display: table !important;
}
.dmach-repeater-table thead,
.dmach-repeater-table tbody{
display: table-header-group !important;
}
.dmach-repeater-table tr {
<?php
add_action( 'template_redirect', 'de_redirect_single_template' );
function de_redirect_single_template() {
if ( is_singular( 'cpt_slug' ) ) {
wp_redirect( home_url(), 301 );
exit;
}
}
?>
.title-image-hover .et_pb_de_mach_title,
.title-image-hover .et_pb_db_product_title,
.title-image-hover .et_pb_df_title {
position: absolute; /* Move ontop of image */
top: 50%; /* Position in center vertically */
transform: translateY(-50%); /* Position in center vertically */
left: 0;
opacity: 0; /* Hide */
-webkit-transition: all 0.3s ease-in-out; /* Animation to fade in */
-ms-transition: all 0.3s ease-in-out; /* Animation to fade in */