[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
astra-addon
/
addons
/
advanced-headers
/
compatibility
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 class-astra-advanced-headers-subtitles.php
1,101 B
SET
[ EDIT ]
|
[ DEL ]
📄 index.php
117 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: class-astra-advanced-headers-subtitles.php
<?php /** * Breadcrumnbs * * @package Astra Addon */ if ( class_exists( 'Subtitles' ) && ! class_exists( 'Astra_Advanced_Headers_Subtitles' ) ) { /** * Astra_Advanced_Headers_Subtitles * * @since 1.0 */ // @codingStandardsIgnoreStart class Astra_Advanced_Headers_Subtitles { // @codingStandardsIgnoreEnd /** * Astra_Advanced_Headers_Subtitles constructor */ public function __construct() { add_filter( 'astra_advanced_header_title', array( $this, 'subtitle_compatibility' ) ); } /** * Subtitle Plugin's Compatibility * * @param string $title Normal Post/Page Title. * @return string */ public function subtitle_compatibility( $title ) { $post_id = astra_get_post_id(); if ( function_exists( 'get_the_subtitle' ) && '' != get_the_subtitle( $post_id ) ) { $output = '<span class="entry-title-primary">' . esc_html( $title ) . '</span>'; $output .= '<span class="entry-subtitle">' . esc_html( get_the_subtitle( $post_id ) ) . '</span>'; return $output; } return $title; } } new Astra_Advanced_Headers_Subtitles(); }