Файловый менеджер - Редактировать - /home/digitalm/invisalign/wp-content/themes/healthy-smiles/core/utils/excerpt.php
Назад
<?php namespace HealthySmilesSpace\Core\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Excerpt handler class. * * For changing excerpt length and returning excerpt * * @since 1.0.0 */ class Excerpt { /** * Excerpt length. * * @since 1.0.0 */ public $length = 55; /** * Excerpt more text. * * @since 1.0.0 */ public $more = '...'; /** * Constructor for Excerpt. * * Sets excerpt length and more text. * * @since 1.0.0 * * @param number $length Excerpt length. * @param string $more Excerpt more text. */ public function __construct( $length, $more ) { $this->length = $length; $this->more = $more; add_filter( 'excerpt_length', function() { return $this->length; } ); add_filter( 'excerpt_more', function() { return $this->more; }, 20 ); } /** * Gets post excerpt. * * @since 1.0.0 * * @return string Post excerpt. */ public function get_excerpt() { return get_the_excerpt(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка