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
d9673460
authored
2024-04-16 14:23:53 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix errors
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
c6fc83ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
wp-content/themes/understrap-child/functions.php
wp-content/themes/understrap-child/functions.php
View file @
d967346
...
...
@@ -10,9 +10,19 @@ defined( 'ABSPATH' ) || exit;
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'
);
function
remove_core_updates
()
{
global
$wp_version
;
return
(
object
)
array
(
'last_checked'
=>
time
(),
'version_checked'
=>
$wp_version
);
}
add_filter
(
'pre_site_transient_update_core'
,
'remove_core_updates'
);
add_filter
(
'pre_site_transient_update_plugins'
,
'remove_core_updates'
);
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
)
{
...
...
Please
register
or
sign in
to post a comment