PHP code example of dekodeinteraktiv / resets

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

    

dekodeinteraktiv / resets example snippets



/**
 * Autoloader for wp-resets
 *
 */

declare( strict_types = 1 );

if ( file_exists( trailingslashit( __DIR__ ) . 'wp-resets/resets.php' ) ) {
	

function setup_custom_project() {
	add_theme_support( 'admin-cards' );
	add_theme_support( 'admin-cleanup' );
	add_theme_support( 'disable-comments' );
	add_theme_support( 'disable-customizer' );
	add_theme_support( 'disable-emoji' );
	add_theme_support( 'disable-feeds' );
	add_theme_support( 'disable-xmlrpc' );
	add_theme_support( 'optimize-embeds' );
	add_theme_support( 'optimize-wp-head' );
	add_theme_support( 'optimize-yoast-schema' );
	add_theme_support( 'post-to-article' );
	add_theme_support( 'searchwp-norwegian-stopwords' );
	add_theme_support( 'youtube-embed-nocookie' );
}
add_action( 'after_setup_theme', 'setup_custom_project' );