it:webove-stranky:wordpress:vypnuti-emailovych-notifikaci

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
it:webove-stranky:wordpress:vypnuti-emailovych-notifikaci [2023/08/19 17:07] Petr Nosekit:webove-stranky:wordpress:vypnuti-emailovych-notifikaci [2023/08/19 17:11] (aktuální) Petr Nosek
Řádek 7: Řádek 7:
 <code php> <code php>
  
-/**                                                                                                         +/** 
- * Disable Auto Update Notification Emails for Core Updates                                                + * Disable Auto Update Notification Emails for Core Updates
  * https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/  * https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/
- */                                                                                                        + */
 add_filter( 'auto_core_update_send_email', 'wpb_stop_auto_update_emails', 10, 4 ); add_filter( 'auto_core_update_send_email', 'wpb_stop_auto_update_emails', 10, 4 );
-                                                                                                            
-function wpb_stop_update_emails( $send, $type, $core_update, $result ) {                                    
-        if ( ! empty( $type ) && $type == 'success' ) {                                                     
-                return false;                                                                               
-        }                                                                                                   
-        return true;                                                                                        
-}                                                                                                           
-                                                                                                            
-/**                                                                                                         
- * Disable Auto Update Notification Emails for Plugins                                                      
- */                                                                                                         
-add_filter( 'auto_plugin_update_send_email', '__return_false' );                                            
-                                                                                                            
-                                                                                                            
-/**                                                                                                         
- * Disable Auto Update Notification Emails for Themes                                                       
- */                                                                                                         
-add_filter( 'auto_theme_update_send_email', '__return_false' );                                             
-                                                                                                            
-                                                                                                            
-/**                                                                                                         
- * Disable nightly builds and development updates                                                           
- * https://www.wpbeginner.com/wp-tutorials/how-to-enable-automatic-updates-in-wordpress-for-major-releases/ 
- */                                                                                                         
-add_filter( 'allow_dev_auto_core_updates', '__return_false' );                                              
  
 +function wpb_stop_update_emails( $send, $type, $core_update, $result ) {
 +        if ( ! empty( $type ) && $type == 'success' ) {
 +                return false;
 +        }
 +        return true;
 +}
 +                                                     
 +/**
 + * Disable Auto Update Notification Emails for Plugins
 + */
 +add_filter( 'auto_plugin_update_send_email', '__return_false' );
  
-</code> 
  
 +/**
 + * Disable Auto Update Notification Emails for Themes
 + */
 +add_filter( 'auto_theme_update_send_email', '__return_false' );
  
  
 +/**
 + * Disable nightly builds and development updates
 + * https://www.wpbeginner.com/wp-tutorials/how-to-enable-automatic-updates-in-wordpress-for-major-releases/
 + */
 +add_filter( 'allow_dev_auto_core_updates', '__return_false' );
  
  
 +</code>
  • it/webove-stranky/wordpress/vypnuti-emailovych-notifikaci.1692464856.txt.gz
  • Poslední úprava: 2023/08/19 17:07
  • autor: Petr Nosek