PHP code example of sirbrillig / phpcs-no-get-current-user

1. Go to this page and download the library: Download sirbrillig/phpcs-no-get-current-user 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/ */

    

sirbrillig / phpcs-no-get-current-user example snippets


$php_user = get_current_user(); // phpcs:ignore NoGetCurrentUser.Disallowed.NoGetCurrentUser.Found


// phpcs:disable NoGetCurrentUser.Disallowed.NoGetCurrentUser.Found