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
| <?php | |
| add_filter( ‘woocommerce_coming_soon_exclude’, function( $is_excluded ) { | |
| $current_user = wp_get_current_user(); | |
| $role_to_exclude = ‘name_of_role’; | |
| if ( in_array( $role_to_exclude, (array) $current_user->roles ) ) { | |
| return true; | |
| } |
| .block-editor .wp-block-spacer { | |
| border: 2px dashed #cbd5e1; | |
| background-color: #f1f5f9; | |
| } |
| <?php | |
| /** | |
| * Plugin Name: Taxonomy WP REST Search | |
| * Plugin URI: | |
| * Description: Taxonomy WP REST Search for the WordPress Block Editor (Gutenberg) | |
| * Author: Johannes Kinast <[email protected]> | |
| * Author URI: https://go-around.de | |
| * Version: 1.0.0 | |
| */ | |
| namespace Taxonomy_WP_REST_Search; |
| <?php | |
| /** | |
| * Plugin initialization file | |
| * | |
| * @package WP_Plugin_MU_Loader | |
| * @since 1.0.0 | |
| * | |
| * @wordpress-plugin | |
| * Plugin Name: WP Plugin MU Loader | |
| * Plugin URI: https://gist.github.com/felixarntz/daff4006112b60dfea677ca08fc0b31c |
| /* | |
| * Add decline button to list view of woocommerce bookings | |
| */ | |
| function wocommerce_bookings_mods_add_custom_booking_status_button_to_bookings_list( $actions, $booking ) { | |
| // Check if the booking requires a decision | |
| if ( 'pending-confirmation' === $booking->get_status() ) { | |
| // Add button to decline the booking | |
| $actions['decline'] = array( |
| <?php | |
| /** | |
| * Plugin Name: Cross Media Cloud | Add language slug to blog name in admin bar | |
| * Description: Show the blog language within the drop down of sites within the admin bar | |
| * Version: 1.0 | |
| * Author: Cross Media Cloud | |
| * Author URI: https://www.cross-media-cloud.de | |
| * License: GNU General Public License v2 or later | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| */ |
| <?php | |
| /* | |
| * Enqueue parent and child theme style.css | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles', 20 ); | |
| function my_theme_enqueue_styles() { | |
| // Get the theme data | |
| $my_theme = wp_get_theme(); |
| <?php | |
| add_action( 'add_meta_boxes', 'listing_image_add_metabox' ); | |
| function listing_image_add_metabox () { | |
| add_meta_box( 'listingimagediv', __( 'Listing Image', 'text-domain' ), 'listing_image_metabox', 'post', 'side', 'low'); | |
| } | |
| function listing_image_metabox ( $post ) { | |
| global $content_width, $_wp_additional_image_sizes; | |
| $image_id = get_post_meta( $post->ID, '_listing_image_id', true ); |
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
| // Disabling the plugin and theme editor for more security | |
| define('DISALLOW_FILE_EDIT', true); | |
| // Check for a local config file | |
| if ( file_exists( dirname( __FILE__ ) . '/wp-local-config.php' ) ) { | |
| /* Get the settings for the development site */ | |
| include( dirname( __FILE__ ) . '/wp-local-config.php' ); | |
| } else { | |
| // Settings for live site |