HEX
Server: Apache
System: Linux webm014.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: circuix (152771)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/circuix/adrRc/wp-content/plugins/wp-seopress/src/Services/Metas/TitleMeta.php
<?php

namespace SEOPress\Services\Metas;

if (! defined('ABSPATH')) {
    exit;
}

class TitleMeta
{
    /**
     *
     * @param array $context
     * @return string|null
     */
    public function getValue($context)
    {

        $value = null;
        if(isset($context['post'])){
            $id = $context['post']->ID;
            $value = get_post_meta($id, '_seopress_titles_title', true);
        }

        if(isset($context['term_id'])){
            $id = $context['term_id'];
            $value = get_term_meta($id, '_seopress_titles_title', true);
        }

        if($value === null){
            return $value;
        }

        return seopress_get_service('TagsToString')->replace($value, $context);

    }
}