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
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Following standard features of the WordPress Core are manipulated or extended.
* Run WordPress Updates automaticly
* Run Plugin Updates automaticly
* Run Theme Updates automaticly
* Exclude specific plugins from Auto Update

###

Expand Down Expand Up @@ -230,6 +231,7 @@ Release pending.
* Added: Caching of ActivityPub Endpoints in WP REST API
* Added: Fade out WB REST CACHE Icon @ Admin Bar
* Added: Disable UpdraftPlus @ Admin Bar
* Added: Exclude specific plugins from Auto Update
* Fixed: Content Type Return @ WP REST CACHE
* Fixed: Force CPTs in Tag Archives
* Changed: Remove Mastodon Account @ Federated Comment extended with Mentions
Expand Down
21 changes: 21 additions & 0 deletions unmus_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,27 @@ function unmus_themes_update() {
}
add_filter( 'auto_update_plugin', 'unmus_themes_update' );

/**
* Exclude specific plugins from Auto Update
*
* @since 0.9
*/

function unmus_exclude_from_auto_update( $update, $item ) {

$exclude = array(
'podlove-podcasting-plugin-for-wordpress/podlove.php',
// add further plugins
);

if ( in_array( $item->plugin, $exclude, true ) ) {
return false;
}

return $update;
}
add_filter( 'auto_update_plugin', 'exclude_from_auto_update', 10, 2 );

/**
* Disable eMail Notification after Update
*
Expand Down