| Server IP : 23.94.149.180 / Your IP : 216.73.216.147 Web Server : nginx/1.20.1 System : Linux deadrock 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 15:18:14 UTC 2026 x86_64 User : apache ( 48) PHP Version : 8.6.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /files/webmaint/corey/website/wp-content/plugins/jetpack/src/ |
Upload File : |
<?php
/**
* Links shared by the Jetpack admin footers.
*
* @package automattic/jetpack
*/
namespace Automattic\Jetpack\Plugin;
use Automattic\Jetpack\My_Jetpack\Initializer as My_Jetpack_Initializer;
/**
* Resolves the footer links that other Jetpack products own.
*
* Autoloaded from `src/` rather than shared through `Jetpack_Admin_Page`: WordPress.com
* Simple declares its own stub of that class, so loading ours there fatals.
*/
class Footer_Links {
/**
* Whether My Jetpack reports that its admin page is available to the current user.
*
* @since 16.3
*
* @return bool
*/
public static function is_my_jetpack_available() {
return method_exists( My_Jetpack_Initializer::class, 'is_admin_page_available' )
&& My_Jetpack_Initializer::is_admin_page_available();
}
/**
* Get the slug and label of My Jetpack's products tab, for footer links to it.
*
* @since 16.3
*
* @return array{slug: string, label: string}
*/
public static function get_my_jetpack_products_section() {
$products_section = method_exists( My_Jetpack_Initializer::class, 'get_products_section' )
? My_Jetpack_Initializer::get_products_section()
: null;
return $products_section ?? array(
'slug' => 'products',
'label' => _x( 'Products', 'Navigation item', 'jetpack' ),
);
}
}