misc - notes

This commit is contained in:
abuyoyo 2019-12-28 02:15:24 +02:00
parent 812ebf4e16
commit cfb9233dac

View File

@ -59,6 +59,12 @@ class NoticeManager{
echo '<button type="button" class="notice-dismiss"><span class="screen-reader-text">' . __( 'Dismiss' ) . '</span><strong> Dismiss Notices</strong></button><div></div>' ;
}
/**
* A plugin 'notice-manager' exists now on @link https://wordpress.org/plugins/
* Disable update notifications completely for our plugin.
*
* @todo - use update_checker to only upload our plugin from github
*/
function remove_update_notifications($value) {
if ( isset( $value ) && is_object( $value ) ) {