403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/send-app/modules/woocommerce/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/send-app/modules/woocommerce/components/store.php
<?php

namespace Send_App\Modules\Woocommerce\Components;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

use Send_App\Modules\Woocommerce\Classes\Store_Helper;

class Store {
	public function store_meta_data( array $meta_data ): array {
		$store_data = Store_Helper::get_store_metadata();
		$meta_data['store'] = $store_data;

		return $meta_data;
	}

	public function trigger_sitedata_update( $old_value = null, $new_value = null ): void {
		static $has_triggered = false;

		if ( $has_triggered ) {
			return;
		}

		$has_triggered = true;
		do_action( 'send_app/sitedata/updated' );
	}

	public function __construct() {
		add_filter( 'send_app/rest/sites/data', [ $this, 'store_meta_data' ] );
		add_action( 'woocommerce_settings_saved', [ $this, 'trigger_sitedata_update' ], 10, 0 );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit