PHP code example of wp-user-manager / wp-notices

1. Go to this page and download the library: Download wp-user-manager/wp-notices library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wp-user-manager / wp-notices example snippets


use TDP\WP_Notice as MYNOTICES;

function mynotices() {
	return MYNOTICES::instance();
}

mynotices()->register_notice( 'my_notice', 'warning', 'This is the message' ) );

mynotices()->register_notice( 'my_notice', 'warning', 'This is the message', array( 'scope' => 'user' ) ) );