Now and then you have to modify an existing Plugin for your own special needs. But you still get a message if an update exists for the original Plugin. If you modified the Plugin several month ago and you forgot about it, so you update the Plugin and all your modifications are gone. Most of the time you have a backup, but even though it's annoying to upload the customized Plugin again after you realized the original Plugin is not exactly what you want. Therefore you can paste a little function in the specified Plugin to display a warning right after the update message. So you won't forget, that you modified this Plugin a while ago.
Image may be NSFW.
Clik here to view.
function my_update_notice() {
$info = __( 'ATTENTION! Plugin was modified.', MY_TEXTDOMAIN );
echo '<span class="spam">' . strip_tags( $info, '<br><a><b><i><span>' ) . '</span>';
}
if ( is_admin() )
add_action( 'in_plugin_update_message-' . plugin_basename(__FILE__), 'my_update_notice' );
© WP Engineer Team, All rights reserved (Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)