This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('allowed_block_types', 'ca_allowed_block_types'); | |
function ca_allowed_block_types($allowed_blocks) | |
{ | |
$allowed_blocks = []; | |
$block_types = WP_Block_Type_Registry::get_instance()->get_all_registered(); | |
$blocks = array_keys($block_types); | |
foreach ($blocks as $block => $block_name) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Disable core WordPress Gutenberg Blocks | |
add_filter('allowed_block_types', 'misha_allowed_block_types'); | |
function misha_allowed_block_types($allowed_blocks) | |
{ | |
$allowed_blocks = []; | |
$block_types = WP_Block_Type_Registry::get_instance()->get_all_registered(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body, | |
code { | |
background-color: #10282E; | |
color: #c9d1d9; | |
} | |
nav.navigation .navigation-link, | |
nav.navigation { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Template Logic | |
function twt_trailer_archive_template($original_template) | |
{ | |
// Set our post type | |
$post_type = 'trailer'; | |
// Set the expected path for a override template within the site theme | |
$file = trailingslashit(get_template_directory()) . "archive-$post_type.php"; |
NewerOlder