Skip to content

Instantly share code, notes, and snippets.

View klaylton's full-sized avatar
💭
Resolvendo problemas desde 1988.

Klaylton Fernando klaylton

💭
Resolvendo problemas desde 1988.
  • Montagem de Fotos
  • Codo - Maranhão
  • X @bboyguil
View GitHub Profile
@klaylton
klaylton / class-wp-cpt-plugin-base-singleton.php
Created October 26, 2021 02:31 — forked from leocaseiro/class-wp-cpt-plugin-base-singleton.php
WordPress Plugin with Custom Post and Metabox using Singleton
<?php
if ( !class_exists('Primped_Base_Singleton') ):
abstract class Primped_Base_Singleton {
/**
* Parsed options for module
*
* @var array
/* To disable the Gutenberg’s CSS loading on the front-end */
function tw_unload_files() {
wp_dequeue_style ( 'wp-block-library' );
wp_dequeue_style ( 'wp-block-library-theme' );
}
add_action( 'wp_enqueue_scripts', 'tw_unload_files', 100 );
/* To disable Elementor’s Google font */