403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.165
Web Server : Apache
System : Linux webm004.cluster126.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 : ohklomafyi ( 52085)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ohklomafyi/www/wp-content/plugins/wp-seopress/src/Actions/Front/Metas/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ohklomafyi/www/wp-content/plugins/wp-seopress/src/Actions/Front/Metas/TitleMeta.php
<?php

namespace SEOPress\Actions\Front\Metas;

defined('ABSPATH') or exit('Cheatin&#8217; uh?');

use SEOPress\Core\Hooks\ExecuteHooksFrontend;

class TitleMeta implements ExecuteHooksFrontend {

    protected $tagsToStringService;

    public function __construct() {
        $this->tagsToStringService = seopress_get_service('TagsToString');
    }

    /**
     * @since 4.4.0
     *
     * @return void
     */
    public function hooks() {
        add_action('wp_head', [$this, 'preLoad'], 0);
    }

    public function preLoad(){
        if ('1' !== seopress_get_toggle_option('titles')) {
            return;
        }

        if ((function_exists('is_wpforo_page') && is_wpforo_page()) || (class_exists('Ecwid_Store_Page') && \Ecwid_Store_Page::is_store_page())) {//disable on wpForo pages to avoid conflicts
            return;
        }

        $priority = apply_filters( 'seopress_titles_the_title_priority', 10 );
        add_filter('pre_get_document_title', [$this, 'render'], $priority);

        if (is_plugin_active('the-events-calendar/the-events-calendar.php')) {
            if (
                function_exists('tribe_is_event') && tribe_is_event() ||
                function_exists('tribe_is_venue') && tribe_is_venue() ||
                function_exists('tribe_is_organizer') && tribe_is_organizer()
                // function_exists('tribe_is_month') && tribe_is_month() && is_tax() ||
                // function_exists('tribe_is_upcoming') && tribe_is_upcoming() && is_tax() ||
                // function_exists('tribe_is_past') && tribe_is_past() && is_tax() ||
                // function_exists('tribe_is_week') && tribe_is_week() && is_tax() ||
                // function_exists('tribe_is_day') && tribe_is_day() && is_tax() ||
                // function_exists('tribe_is_map') && tribe_is_map() && is_tax() ||
                // function_exists('tribe_is_photo') && tribe_is_photo() && is_tax()
            ) {
                add_filter('pre_get_document_title', 'seopress_titles_the_title', 20);
            }
        }
    }


    /**
     * @since 4.4.0
     *
     * @return string
     */
    public function render() {
        $defaultHook = function_exists('seopress_get_service');

        if (apply_filters('seopress_old_pre_get_document_title', true)) {
            return;
        }

        $context = seopress_get_service('ContextPage')->getContext();

        $title = seopress_get_service('TitleMeta')->getValue($context);

        return $title;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit