PHP code example of srtfisher / lockdown-wp-admin

1. Go to this page and download the library: Download srtfisher/lockdown-wp-admin 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/ */

    

srtfisher / lockdown-wp-admin example snippets



function add_my_cool_filter($data)
{
	// You have to accept the $data argument or else it will cause a system meltdown ;)
	$data[] = 'my-file-name.php';	//	JUST the file name.
	return $data;
}
add_filter('no_check_files', 'add_my_cool_filter');