PHP code example of upperdog / client-admin-cleanup

1. Go to this page and download the library: Download upperdog/client-admin-cleanup 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/ */

    

upperdog / client-admin-cleanup example snippets


function site_client_admin_cleanup_allowed_users() {
    $allowed_users = array( 'bill', 'melinda' );
    return $allowed_users;
}
add_filter( 'client_admin_cleanup_allowed_users', 'site_client_admin_cleanup_allowed_users' );