Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd
/
wp-content
/
plugins
/
woocommerce
/
packages
/
blueprint
/
src
/
ResourceStorages
/
File Content:
OrgThemeResourceStorage.php
<?php namespace Automattic\WooCommerce\Blueprint\ResourceStorages; /** * Class OrgThemeResourceStorage */ class OrgThemeResourceStorage extends OrgPluginResourceStorage { /** * Get the download link. * * @param string $slug The slug of the theme to be downloaded. * * @return string|null The download link. */ protected function get_download_link( $slug ): ?string { $info = $this->wp_themes_api( 'theme_information', array( 'slug' => $slug, 'fields' => array( 'sections' => false, ), ) ); if ( is_wp_error( $info ) ) { return null; } if ( isset( $info->download_link ) ) { return $info->download_link; } return null; } /** * Get the supported resource. * * @return string The supported resource. */ public function get_supported_resource(): string { return 'wordpress.org/themes'; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
LocalPluginResourceStorage.php
1286 bytes
0644
LocalThemeResourceStorage.php
448 bytes
0644
OrgPluginResourceStorage.php
1946 bytes
0644
OrgThemeResourceStorage.php
870 bytes
0644
ResourceStorage.php
721 bytes
0644
N4ST4R_ID | Naxtarrr