Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeff Balicki
/
FP_Canada
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fbf6f891
authored
2022-04-18 13:45:21 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
disable emails for updates
1 parent
89767559
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
wp-content/themes/understrap-child/functions.php
wp-content/themes/understrap-child/functions.php
View file @
fbf6f89
...
...
@@ -8,12 +8,21 @@
// Exit if accessed directly.
defined
(
'ABSPATH'
)
||
exit
;
add_filter
(
'auto_core_update_send_email'
,
'__return_false'
);
add_filter
(
'auto_update_plugin'
,
'__return_false'
);
add_filter
(
'pre_site_transient_update_plugins'
,
'remove_core_updates'
);
add_filter
(
'auto_update_theme'
,
'__return_false'
);
add_filter
(
'pre_site_transient_update_themes'
,
'remove_core_updates'
);
add_filter
(
'auto_core_update_send_email'
,
'smartwp_disable_core_update_emails'
,
10
,
4
);
function
smartwp_disable_core_update_emails
(
$send
,
$type
,
$core_update
,
$result
)
{
if
(
!
empty
(
$type
)
&&
$type
==
'success'
)
{
return
false
;
}
return
true
;
}
/**
* Removes the parent themes stylesheet and scripts from inc/enqueue.php
...
...
Please
register
or
sign in
to post a comment