GRAYBYTE WORDPRESS FILE MANAGER7155

Server IP : 162.213.255.40 / Your IP : 216.73.216.121
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/jetpack/_inc/lib/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/jetpack/_inc/lib//plans.php
<?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Plans Library
 *
 * Fetch plans data from WordPress.com.
 *
 * Not to be confused with the `Jetpack_Plan` (singular)
 * class, which stores and syncs data about the site's _current_ plan.
 *
 * @package automattic/jetpack
 */
class Jetpack_Plans {
	/**
	 * Get a list of all available plans from WordPress.com
	 *
	 * @since 7.7.0
	 *
	 * @return array The plans list
	 */
	public static function get_plans() {
		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
			if ( ! class_exists( 'Store_Product_List' ) ) {
				require WP_CONTENT_DIR . '/admin-plugins/wpcom-billing/store-product-list.php';
			}

			return Store_Product_List::api_only_get_active_plans_v1_4();
		}

		// We're on Jetpack, so it's safe to use this namespace.
		$request = Automattic\Jetpack\Connection\Client::wpcom_json_api_request_as_user(
			'/plans?_locale=' . get_user_locale(),
			// We're using version 1.5 of the endpoint rather than the default version 2
			// since the latter only returns Jetpack Plans, but we're also interested in
			// WordPress.com plans, for consumers of this method that run on WP.com.
			'1.5',
			array(
				'method'  => 'GET',
				'headers' => array(
					'X-Forwarded-For' => ( new Automattic\Jetpack\Status\Visitor() )->get_ip( true ),
				),
			),
			null,
			'rest'
		);

		$body = wp_remote_retrieve_body( $request );
		if ( 200 === wp_remote_retrieve_response_code( $request ) ) {
			return json_decode( $body );
		} else {
			return $body;
		}
	}

	/**
	 * Get plan information for a plan given its slug
	 *
	 * @since 7.7.0
	 *
	 * @param string $plan_slug Plan slug.
	 *
	 * @return object The plan object
	 */
	public static function get_plan( $plan_slug ) {
		$plans = self::get_plans();
		if ( ! is_array( $plans ) ) {
			return;
		}

		foreach ( $plans as $plan ) {
			if ( $plan_slug === $plan->product_slug ) {
				return $plan;
			}
		}
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
admin-pages
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
core-api
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
debugger
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
markdown
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
class-jetpack-ai-helper.php
13.83 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-currencies.php
4.733 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-instagram-gallery-helper.php
2.916 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-mapbox-helper.php
3.156 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-podcast-feed-locator.php
3.589 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-podcast-helper.php
20.664 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-recommendations.php
15.237 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class-jetpack-top-posts-helper.php
3.947 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.color.php
21.787 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.core-rest-api-endpoints.php
147.604 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-automatic-install-skin.php
0.286 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-iframe-embed.php
3.104 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-keyring-service-helper.php
9.104 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-password-checker.php
32.446 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.jetpack-search-performance-logger.php
3.624 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.media-extractor.php
21.57 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.media-summary.php
15.133 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
class.media.php
15.563 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
components.php
2.642 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
debugger.php
0.852 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
functions.wp-notify.php
19.093 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
icalendar-reader.php
33.023 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
jp-simplepie-alias-new.php
0.674 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
jp-simplepie-alias-old.php
0.664 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
jp-simplepie-alias.php
0.731 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
markdown.php
0.336 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
plans.php
1.89 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
plugins.php
0.204 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
tonesque.php
6.851 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644
widgets.php
26.193 KB
February 05 2025 15:44:59
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF