Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created February 8, 2018 14:23
Show Gist options
  • Save plugin-republic/13d57268c51ba05a31021b89142c420b to your computer and use it in GitHub Desktop.
Save plugin-republic/13d57268c51ba05a31021b89142c420b to your computer and use it in GitHub Desktop.
function prefix_plugin_update_message( $data, $response ) {
if( isset( $data['upgrade_notice'] ) ) {
printf(
'<div class="update-message">%s</div>',
wpautop( $data['upgrade_notice'] )
);
}
}
add_action( 'in_plugin_update_message-your-plugin/your-plugin.php', 'prefix_plugin_update_message', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment