add block-cache-manager.php

This commit is contained in:
Andrey Kuvshinov
2025-08-27 00:00:02 +03:00
parent b5595ae76e
commit f3314894aa
12 changed files with 339 additions and 100 deletions

View File

@@ -414,13 +414,23 @@
function show_post_thumbnail(WP_Post|int $post = null) : bool
{
$post_id = get_the_ID();
$days = get_post_meta(get_the_ID(),'_hide_thumbnail_countdown', true);
if ($days == 0){ // если ноль - показывать всегда
return true;
}
if( hide_thumbnail_by_countdown() ) {
return false;
}
if ( is_single() || is_feed() ) {
//if ( is_single() || is_feed() ) {
if ( in_array( get_post_type(), ['anew', 'yellow'] ) && get_the_date("U") < 1719187200 ) {
@@ -501,7 +511,7 @@
return true;
}
//}
return true;
@@ -1279,7 +1289,8 @@
/**
* Сжатие html
*/
require_once __DIR__ . "/inc/compress-html.php";
require_once 'inc/compress-html.php';
//require_once __DIR__ . "/inc/compress-html.php";