Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ Standard features of the following plugins will be manipulated or extended.
### UpdraftPlus

* Fade out the annoying Message on Upgrade Page
* Fade out UpdraftPlus @ Admin Bar

### wpRocket

Expand Down
29 changes: 0 additions & 29 deletions unmus_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,4 @@ function unmus_themes_update() {
// Disable themes auto-update email notifications.
add_filter( 'auto_theme_update_send_email', '__return_false' );

/**
* The annoying Message
*
* Plugin: UpdraftPlus
* Fades out the Message on WordPress Upgrade Page
*
* @since 0.8
*/

function unmus_updraft_message_invisible() {

// Get current page
global $pagenow;

// Run on specific pages only
if ( $pagenow == 'update-core.php') {

echo "
<style type='text/css'>
.updraft-ad-container {
display:none !important;
}
</style>
";
}

}
add_action( 'admin_head', 'unmus_updraft_message_invisible' );

?>
29 changes: 29 additions & 0 deletions unmus_visibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,33 @@ function unmus_disable_updraftplus_admin_bar() {
}
add_action('wp_before_admin_bar_render', 'unmus_disable_updraftplus_admin_bar', 999);

/**
* The annoying Message
*
* Plugin: UpdraftPlus
* Fades out the Message on WordPress Upgrade Page
*
* @since 0.8
*/

function unmus_updraft_message_invisible() {

// Get current page
global $pagenow;

// Run on specific pages only
if ( $pagenow == 'update-core.php') {

echo "
<style type='text/css'>
.updraft-ad-container {
display:none !important;
}
</style>
";
}

}
add_action( 'admin_head', 'unmus_updraft_message_invisible' );

?>