This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://seoagentur-hamburg.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
add_action('blocksy:woocommerce:product-single:excerpt:after', 'show_cross_sell_in_single_product', 30); | |
function show_cross_sell_in_single_product(){ | |
$crosssells = get_post_meta( get_the_ID(), '_crosssell_ids',true); | |
if(empty($crosssells)){ | |
return; | |
} | |
$args = array( | |
'post_type' => 'product', |
// Use the following code and paste it into the Code Snippets plugin or functions.php of your child theme. | |
// After that you will find a new meta box in the WooCommerce products. | |
// Everything you enter there will appear in the single product as a new tab. | |
// In line 17 you can give your meta box a title | |
// In line 88 you can give your tab a title | |
// Adding a custom Meta container to admin products pages | |
add_action( 'add_meta_boxes', 'create_custom_meta_box' ); |
<!doctype html><html><head><meta charset="UTF-8"><title>Thanks for signing up</title></head><body bgcolor="#ffede3"> | |
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffede3"><tr><td> | |
<table width="600" align="center" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff"><tr><td colspan="3"><a href="http://www.mailpoet.com"><img style="display:block;border:0;outline:none;-ms-interpolation-mode:bicubic;" src="https://www.mailpoet.com/wp-content/uploads/2019/01/mailpoet-logo-orange-header.png" width="600" height="118" alt="MailPoet" /></a></td></tr><tr><td width="20"></td> | |
<td style="color:#071c6d;font-family:arial,sans-serif;font-size:15px;"> | |
<b>Hello!</b> | |
Thanks for signing up. |
<script> | |
jQuery(document).ready(function($) { | |
$('.ct-filter').on( 'click', function(event){ | |
var $type = $(this).data("filter"); | |
if($type == "all"){ | |
$('.entry-card').fadeOut(0); | |
$('.entry-card').fadeIn(500); | |
} else { | |
$('.entry-card').hide(); | |
// For CPTs just change the category class to your CPTs slug for example: '.projects-' |
add_action( 'wp_head', function () { | |
?> | |
<link rel="preload" href="/wp-content/uploads/blocksy/local-google-fonts/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2" as="font" type="font/woff2" crossorigin> | |
<link rel="preload" href="/wp-content/uploads/blocksy/local-google-fonts/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2" as="font" type="font/woff2" crossorigin> | |
<link rel="preload" href="/wp-content/uploads/blocksy/local-google-fonts/s/poppins/v15/pxiByp8kv8JHgFVrLCz7Z1xlFd2JQEk.woff2" as="font" type="font/woff2" crossorigin> | |
<?php } ); |
function my_leco_cp_logout_url() { | |
// return the preferred URL. | |
return home_url(); | |
} | |
add_filter( 'leco_cp_logout_url', 'my_leco_cp_logout_url' ); | |
function my_leco_cp_client_portal_archive() { | |
return 'Ihre Projekte'; | |
} | |
add_filter( 'leco_cp_client_portal_archive', 'my_leco_cp_client_portal_archive' ); |
function my_leco_cp_client_roles( $roles ) { | |
$roles = array_merge( $roles, array( 'administrator', 'customer' ) ); | |
return $roles; | |
} | |
add_filter( 'leco_cp_client_roles', 'my_leco_cp_client_roles' ); |