PHP code example of devsabbirhossain / wordpress-code-sniffer

1. Go to this page and download the library: Download devsabbirhossain/wordpress-code-sniffer 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/ */

    

devsabbirhossain / wordpress-code-sniffer example snippets


// phpcs:disable WordPress.Security.NonceVerification.Missing
if ( isset( $_POST['data'] ) ) {
    // Process data without nonce check
}
// phpcs:enable WordPress.Security.NonceVerification.Missing