-
-
Save plugin-republic/13d57268c51ba05a31021b89142c420b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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