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
| #!/bin/bash | |
| # | |
| # Backup and update WordPress using wp-cli | |
| # | |
| # Set the -e shell option so the script exits immediately if any command within | |
| # it exits with a non-zero status. | |
| set -e | |
| # Set PATH environment variable |
| <?php | |
| /** | |
| * Change post type single slug | |
| */ | |
| add_filter( 'register_post_type_args', 'bea_edit_page', 20, 2 ); | |
| function bea_edit_page( $args, $post_type ) { | |
| if ( 'page' !== $post_type ) { | |
| return $args; | |
| } |
| #!/bin/bash | |
| # | |
| # Backup and update WordPress using wp-cli | |
| # | |
| # Set the -e shell option so the script exits immediately if any command within | |
| # it exits with a non-zero status. | |
| set -e | |
| # Set PATH environment variable |
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 if ( ! defined( 'ABSPATH' ) ) { | |
| die( 'Restricted Area' ); | |
| } | |
| /* | |
| * Plugin Name: Sanitize File Name | |
| * Description: Clean file name when uploading files in WordPress. | |
| * Version: 20240103 | |
| * Author: Mickaël Gris (Saipafo) & Aurélien Denis (WP channel) | |
| * Author URI: https://wpchannel.com/wordpress/tutoriels-wordpress/renommer-automatiquement-fichiers-accentues-wordpress/ |
| INITIALISATION | |
| ============== | |
| load wp-config.php | |
| set up default constants | |
| load wp-content/advanced-cache.php if it exists | |
| load wp-content/db.php if it exists | |
| connect to mysql, select db | |
| load object cache (object-cache.php if it exists, or wp-include/cache.php if not) | |
| load wp-content/sunrise.php if it exists (multisite only) |
| <?php | |
| /* | |
| Plugin Name: No french punctuation and accents for filename | |
| Description: Remove all french punctuation and accents from the filename of upload for client limitation (Safari Mac/IOS) | |
| Plugin URI: http://www.beapi.fr | |
| Version: 1.0 | |
| Author: BeAPI | |
| Author URI: http://www.beapi.fr | |
| /* |
| /** | |
| * Optimize WooCommerce Scripts | |
| * Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages. | |
| */ | |
| add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 ); | |
| function child_manage_woocommerce_styles() { | |
| //remove generator meta tag | |
| remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); |