PHP code example of codelight-eu / codelight-wp-cleanup

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

    

codelight-eu / codelight-wp-cleanup example snippets


add_theme_support('cl-wp-cleanup');

add_theme_support('cl-disable-customizer');

add_filter('cl_remove_archives', function($types) {
    return array('author', 'date', 'attachment');
});

add_filter('cl_remove_widgets', function($widgets) {
    return array('misc', 'blog');
});

add_theme_support('cl-restricted-dashboard-access');

add_theme_support('cl-disable-admin-cleanup');

add_theme_support('cl-enable-tools');

add_theme_support('cl-disable-tinymce-cleanup');

add_theme_support('cl-enable-xmlrpc');