Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php // add_filter('woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_a..
Decoded Output download
<?php
// add_filter('woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text');
// function woocommerce_custom_product_add_to_cart_text()
// {
// return __(ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Buy Now', 'woocommerce');
// }
//
// add_filter( 'woocommerce_rest_check_permissions', 'my_woocommerce_rest_check_permissions', 90, 4 );
//
// function my_woocommerce_rest_check_permissions( $permission, $context, $object_id, $post_type ){
// return true;
// }
add_filter('mod_rewrite_rules', 'fix_rewritebase');
function fix_rewritebase($rules){
$home_root = parse_url(home_url());
if ( isset( $home_root['path'] ) ) {
$home_root = trailingslashit($home_root['path']);
} else {
$home_root = '/';
}
$wpml_root = parse_url(get_option('home'));
if ( isset( $wpml_root['path'] ) ) {
$wpml_root = trailingslashit($wpml_root['path']);
} else {
$wpml_root = '/';
}
$rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules);
$rules = str_replace("RewriteRule . $home_root", "RewriteRule . $wpml_root", $rules);
return $rules;
}
add_filter( 'woocommerce_product_add_to_cart_text', 'filter_woocommerce_product_add_to_cart_text', 10, 2 );
add_filter( 'woocommerce_product_single_add_to_cart_text', 'filter_woocommerce_product_add_to_cart_text', 10, 2 );
function filter_woocommerce_product_add_to_cart_text( $add_to_cart_text, $product ) {
// Price empty and Product is out of stock
if ( $product->get_stock_status() == 'outofstock' )
$add_to_cart_text = ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'This product is not available';
return $add_to_cart_text;
}
add_filter( 'auto_update_plugin', '__return_false' );
add_filter( 'auto_update_theme', '__return_false' );
/**
* Auto On hold all WooCommerce orders.
*/
function custom_woocommerce_auto_complete_order( $order_id ) {
if ( ! $order_id ) {
return;
}
$order = wc_get_order( $order_id );
if( 'processing'== $order->get_status() ) {
$order->update_status( 'on-hold' );
}
}
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'SAR': $currency_symbol = ICL_LANGUAGE_CODE === 'ar' ? '.' : 'SAR'; break;
}
return $currency_symbol;
}
add_filter( 'woocommerce_before_shop_loop', function () {
if (is_product_category([86,77])) {
echo '<section style="margin-bottom: 20px;" class="elementor-section elementor-top-section elementor-element elementor-element-40def97 elementor-section-full_width elementor-section-height-default elementor-section-height-default" data-id="40def97" data-element_type="section">
<div class="elementor-container elementor-column-gap-no">
<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fa87aa4" data-id="fa87aa4" data-element_type="column">
<div class="elementor-widget-wrap elementor-element-populated">
<div class="elementor-element elementor-element-c734283 elementor-widget elementor-widget-image" data-id="c734283" data-element_type="widget" data-widget_type="image.default">
<div class="elementor-widget-container">
<a href="https://test.pteam.sa/wp-content/uploads/2022/09/DOC-20220824-WA0005..pdf">
';
if(ICL_LANGUAGE_CODE === 'ar') {
echo '<img width="1903" height="917" src="https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1.jpg" class="attachment-full size-full wvs-archive-product-image" alt="" srcset="https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1.jpg.webp 1903w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-300x145.jpg 300w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-1024x493.jpg.webp 1024w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-768x370.jpg.webp 768w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-1536x740.jpg.webp 1536w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-600x289.jpg.webp 600w" sizes="(max-width: 1903px) 100vw, 1903px">';
} else {
echo '<img width="1903" height="917" src="https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e.jpg" class="attachment-full size-full wvs-archive-product-image" alt="" srcset="https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e.jpg.webp 1903w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-300x145.jpg 300w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-1024x493.jpg.webp 1024w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-768x370.jpg.webp 768w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-1536x740.jpg.webp 1536w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-600x289.jpg.webp 600w" sizes="(max-width: 1903px) 100vw, 1903px">';
}
echo' </a>
</div>
</div>
</div>
</div>
</div>
</section>';
}
});
// add_filter('woocommerce_after_single_product', 'hide_3d_button');
function hide_3d_button()
{
global $post;
if (!str_contains($post->post_excerpt, 'sketchfab'))
echo '<style> #show_3d { display: none } </style>';
}
// add_action('woocommerce_after_add_to_cart_button', 'custom_button_after_product_summary', 30);
function custom_button_after_product_summary()
{
global $product;
$current_user_id = get_current_user_id();
if ($current_user_id !== 0) {
$user_is_b2b = get_user_meta($current_user_id, 'b2bking_b2buser', true);
if ($user_is_b2b === "yes" && in_array(get_user_meta($current_user_id, 'b2bking_registration_role', true), ['role_21', 'role_2333'])) {
if ($product->is_type('variable'))
echo '
<script>
jQuery("form.variations_form").on("show_variation", function(event, data){
jQuery("#get_quote_button").on("click", () => location.href = "' . wc_get_page_permalink('myaccount') . 'bulkorder/?product_title=' . $product->get_title() . ' - " + data.variation_description.replace(/<\/?[^>]+(>|$)/g, "") + "&product_id=" + data.variation_id + "&quantity=" + jQuery("input[name=quantity]").val())
});
</script>
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="button" id="get_quote_button" class="single_add_to_cart_button button second" style="background-color:#ebe9eb">' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Get Quotation') . '</button>
<button type="submit" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
else
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<a href="' . wc_get_page_permalink('myaccount') . 'bulkorder/?product_title=' . $product->get_title() . '&product_id=' . $product->get_id() . '" class="button elementor-button">' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Get Quotation') . '</a>
<button type="submit" name="add-to-cart" value="' . $product->get_id() . '" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
} else {
if ($product->is_type('variable'))
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="submit" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
else
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="submit" name="add-to-cart" value="' . $product->get_id() . '" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
}
} else {
if ($product->is_type('variable'))
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="submit" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
else
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="submit" name="add-to-cart" value="' . $product->get_id() . '" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
}
echo ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'The price does not include additional taxes';
}
// add_action('woocommerce_before_account_navigation', 'add_account_type');
function add_account_type()
{
$current_user_id = get_current_user_id();
if ($current_user_id !== 0) {
$user_is_b2b = get_user_meta($current_user_id, 'b2bking_b2buser', true);
if ($user_is_b2b === "yes") {
$role = get_user_meta($current_user_id, 'b2bking_registration_role', true);
if ($role)
echo '<h4>' . get_the_title(apply_filters('wpml_object_id', str_replace('role_', '', $role), 'post', true)) . '</h4>';
else
echo '<h4>' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Normal Account') . '</h4>';
} else {
echo '<h4>' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Normal Account') . '</h4>';
}
}
}
function display_user_type()
{
$current_user_id = get_current_user_id();
if ($current_user_id !== 0) {
$user_is_b2b = get_user_meta($current_user_id, 'b2bking_b2buser', true);
if ($user_is_b2b === "yes") {
$role = get_user_meta($current_user_id, 'b2bking_registration_role', true);
if ($role)
return '<span>' . get_the_title(apply_filters('wpml_object_id', str_replace('role_', '', $role), 'post', true)) . '</span>';
else
return '<span>' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Normal Account') . '</span>';
} else {
return '<span>' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Normal Account') . '</span>';
}
}
}
// add_shortcode('user_type', 'display_user_type');
// add_action('woocommerce_before_account_navigation', 'we_will_contact_you', 1);
function we_will_contact_you()
{
if (isset($_GET['success'])) {
?>
<div class="woocommerce-notices-wrapper">
<div class="woocommerce-message" role="alert">
<?php echo ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'The request for quotation has been submitted, we will contact you as soon as possible to serve you better and you can follow your request from the conversations list' ?>
</div>
</div>
<div class="clear"></div>
<?php
}
}
function b2b_benefits()
{
?>
<div class="woocommerce-notices-wrapper" id="b2b_benefits">
<div class="woocommerce-info" role="alert">
<?php echo ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Register as a company account to benefit from discounts on bulk purchases' ?>
</div>
</div>
<div class="clear"></div>
<?php
}
// add_action('woocommerce_register_form_start', 'b2b_benefits', 1);
// add_filter('woocommerce_available_payment_gateways', 'show_hide_payment_methods');
function show_hide_payment_methods($available_gateways)
{
if(in_array(WC_Geolocation::get_ip_address(),['95.185.151.219']) && isset($available_gateways['cod']))
unset($available_gateways['cod']);
if (WC()->cart->total >= 50000) {
if (is_checkout() && !is_wc_endpoint_url())
wc_add_notice(__(ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Due to exceeding the upper limit for requests, upon completion of the request, it will be submitted to the relevant department and we will contact you as soon as possible to complete the rest of the application procedures'), 'notice');
if (isset($available_gateways['myfatoorah_v2'])) {
unset($available_gateways['myfatoorah_v2']);
}
} else {
if (isset($available_gateways['b2bking-invoice-gateway'])) {
unset($available_gateways['b2bking-invoice-gateway']);
}
}
return $available_gateways;
}
add_action('woocommerce_before_add_to_cart_quantity', 'add_total');
function add_total()
{
global $product;
$product_id = apply_filters( 'wpml_object_id', $product->get_id(), 'product', false, ICL_LANGUAGE_CODE );
$product = wc_get_product( $product_id );
$price = $product->get_price();
$currency_symbol = get_woocommerce_currency_symbol();
// echo sprintf('<div id="product_total_price" style="margin:auto;text-align:center;">%s %s<br /><span>%s</span><br /><span style="color:red">%s</span></div>', ICL_LANGUAGE_CODE === 'ar' ? ': ' : 'Total: ', '<span class="price"></span> ' . $currency_symbol, ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'The price does not include additional taxes', ( (!$product->is_in_stock() || $product->get_stock_quantity() == 0) && $var_result === false ) ? (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'This product is not available') : '');
?>
<a href="https://wa.me/966557226628?text=<?= ICL_LANGUAGE_CODE === 'ar' ? (' : '. $product->get_title()) : ('I want this product: '.urlencode($product->get_title())) ?>" class="button-52"><?= ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Place order via WhatsApp'?></a>
<style>
.button-52 {
font-size: 16px;
text-align: center;
font-weight: 600!important;
width: 100%;
color: #fff;
background: #25D366;
border: 3px solid #25D366;
padding: 5px 35px 0 0;
margin: 5px 0 0;
position: relative;
line-height: 40px;
}
.button-52:hover {
background: transparent;
color: #000;
}
.button-52::after {
content: "";
background: rgb(0 0 0/0) var(--joinchat-ico) 50% no-repeat;
position: absolute;
top: 6px;
right: 10px;
width: 35px;
height: 35px;
filter: none;
}
.button-52:hover::after {
filter: invert(1);
}
</style>
<?php
echo sprintf('<div id="product_total_price" style="margin:auto;text-align:center;">%s <span class="price">0</span> %s<br /><span>%s</span></div>', ICL_LANGUAGE_CODE === 'ar' ? ': ' : 'Total: ', $currency_symbol, ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'The price does not include additional taxes');
?>
<script>
jQuery(".tm-extra-product-options-field")
.has(".cpf-type-upload:not(.tc-is-required)")
.css("display", "none");
function GET_PRICE() {
if (jQuery(".b2bking_tiered_active_price").length > 0) {
jQuery(".price .woocommerce-Price-amount.amount").hide();
return (
jQuery('[name="quantity"]').val() *
parseFloat(
jQuery(".b2bking_tiered_active_price")
.html()
.replace(/[^\d]/g, "")
.slice(0, -2)
)
);
} else if (jQuery(".FinalTotal").length > 0)
return parseFloat(
jQuery(".FinalTotal").html().replace(/[^\d]/g, "").slice(0, -2)
);
else if (jQuery("form .woocommerce-Price-amount.amount").length > 0)
return parseFloat(
jQuery("form .woocommerce-Price-amount.amount")
.html()
.replace(/[^\d]/g, "")
.slice(0, -2)
);
else return jQuery('[name="quantity"]').val() * <?php echo $price ?>;
}
setTimeout(() => jQuery("#product_total_price .price").html(GET_PRICE()), 500);
jQuery(".ButtonSelectorItem").on("click", () => {
if (jQuery('[name="quantity"]').val() > 0)
jQuery("#product_total_price").show();
else jQuery("#product_total_price").hide();
setTimeout(() => {
jQuery("#product_total_price .price").html(GET_PRICE());
}, 300);
});
jQuery('[name="quantity"]').on("input keyup change", () => {
if (jQuery('[name="quantity"]').val() > 0)
jQuery("#product_total_price").show();
else jQuery("#product_total_price").hide();
setTimeout(() => {
jQuery("#product_total_price .price").html(GET_PRICE());
}, 300);
});
</script>
<?php
}
add_action('woocommerce_register_form', 'wc_register_form_password_repeat', 1);
function wc_register_form_password_repeat()
{
?>
<p class="form-row form-row-wide">
<label for="reg_password2"><?php echo ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Repeat Password' ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password2" id="reg_password2" value="<?php if (!empty($_POST['password2'])) echo esc_attr($_POST['password2']); ?>" />
</p>
<?php
}
add_filter('woocommerce_default_address_fields', 'adjust_requirement_of_checkout_address_fields');
function adjust_requirement_of_checkout_address_fields($fields)
{
$fields['company']['required'] = false;
$fields['address_2']['required'] = false;
$fields['state']['required'] = false;
$fields['postcode']['required'] = false;
return $fields;
}
// add_filter('woocommerce_billing_fields', 'adjust_requirement_of_checkout_contact_fields');
// function adjust_requirement_of_checkout_contact_fields($fields)
// {
// $fields['billing_email']['required'] = false;
// return $fields;
// }
// Display custom field on single product page
function d_notes_field()
{
$value = isset($_POST['notes_field']) ? sanitize_text_field($_POST['notes_field']) : '';
woocommerce_form_field('notes_field', array(
'type' => 'textarea',
'label' => __(ICL_LANGUAGE_CODE === 'ar' ? '' : 'Notes'),
'placeholder' => __(ICL_LANGUAGE_CODE === 'ar' ? ' ...' : 'Add your note here, please'),
'required' => false,
), esc_attr($value));
}
// add_action('woocommerce_before_add_to_cart_quantity', 'd_notes_field', 99999);
// add custom field data in to cart
function d_add_cart_item_data($cart_item, $product_id)
{
if (isset($_POST['notes_field'])) {
$cart_item['notes_field'] = sanitize_text_field($_POST['notes_field']);
}
return $cart_item;
}
// add_filter('woocommerce_add_cart_item_data', 'd_add_cart_item_data', 10, 2);
// load data from session
function d_get_cart_data_f_session($cart_item, $values)
{
if (!empty($values['notes_field'])) {
$cart_item['notes_field'] = $values['notes_field'];
}
return $cart_item;
}
// add_filter('woocommerce_get_cart_item_from_session', 'd_get_cart_data_f_session', 20, 2);
//add meta to order
function d_add_order_meta($item_id, $values)
{
if (!empty($values['notes_field'])) {
woocommerce_add_order_item_meta($item_id, 'notes_field', $values['notes_field']);
}
}
// add_action('woocommerce_add_order_item_meta', 'd_add_order_meta', 10, 2);
// display data in cart
function d_get_itemdata($other_data, $cart_item)
{
if (!empty($cart_item['notes_field'])) {
$other_data[] = array(
'name' => __(ICL_LANGUAGE_CODE === 'ar' ? '' : 'Notes'),
'value' => sanitize_text_field($cart_item['notes_field'])
);
}
return $other_data;
}
// add_filter('woocommerce_get_item_data', 'd_get_itemdata', 10, 2);
// display custom field data in order view
function d_dis_metadata_order($cart_item, $order_item)
{
if (!empty($order_item['notes_field'])) {
$cart_item_meta['notes_field'] = $order_item['notes_field'];
}
return $cart_item;
}
// add_filter('woocommerce_order_item_product', 'd_dis_metadata_order', 10, 2);
// add field data in email
function d_order_email_data($fields)
{
$fields['notes_field'] = __(ICL_LANGUAGE_CODE === 'ar' ? '' : 'Notes');
return $fields;
}
// add_filter('woocommerce_email_order_meta_fields', 'd_order_email_data');
// again order
function d_order_again_meta_data($cart_item, $order_item, $order)
{
if (!empty($order_item['notes_field'])) {
$cart_item_meta['notes_field'] = $order_item['notes_field'];
}
return $cart_item;
}
// add_filter('woocommerce_order_again_cart_item_data', 'd_order_again_meta_data', 10, 3);
add_filter('woocommerce_checkout_fields', 'override_checkout_city_fields');
function override_checkout_city_fields($fields)
{
global $woocommerce;
// Define here in the array your desired cities (Here an example of cities)
$option_cities = array(
"" => "", "" => "", " " => " ", " " => " ", "" => "", "" => "", " " => " ", "" => "", " " => " ", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => ""
);
$country = $woocommerce->customer->get_shipping_country();
if ($country === 'SA') {
$fields['billing']['billing_city']['type'] = 'select';
$fields['billing']['billing_city']['options'] = $option_cities;
$fields['shipping']['shipping_city']['type'] = 'select';
$fields['shipping']['shipping_city']['options'] = $option_cities;
} else {
$fields['billing']['billing_city']['type'] = 'text';
$fields['shipping']['shipping_city']['type'] = 'text';
}
$fields['billing']['billing_phone']['label'] = $fields['shipping']['shipping_phone']['label'] = ICL_LANGUAGE_CODE === 'ar' ? ' ( )' : 'Mobile number (preferably a WhatsApp number)';
return $fields;
}
add_action('woocommerce_cart_calculate_fees', 'custom_cod_fee', 10, 1);
function custom_cod_fee($cart)
{
if (is_admin() && !defined('DOING_AJAX'))
return;
if ('cod' === WC()->session->get('chosen_payment_method')) {
$cart->add_fee(ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'COD Fee', 30, true);
}
}
add_action('wp_footer', 'custom_checkout_jqscript');
function custom_checkout_jqscript()
{
if (is_checkout() && !is_wc_endpoint_url()) :
?>
<script type="text/javascript">
jQuery(function($) {
$('form.checkout').on('change', 'input[name="payment_method"]', function() {
$(document.body).trigger('update_checkout');
});
});
</script>
<?php
endif;
}
function my_hide_shipping_when_free_is_available($rates)
{
$free = array();
foreach ($rates as $rate_id => $rate) {
if ('free_shipping' === $rate->method_id) {
$free[$rate_id] = $rate;
break;
}
}
return !empty($free) ? $free : $rates;
}
add_filter('woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 100);
add_action('wp_head', 'Marketing_TAGS');
function Marketing_TAGS()
{
?>
<meta name="facebook-domain-verification" content="ig5ltz0jiq2qr18ulzhf304yu1un8o" />
<?php
};
function FILTER_IMAGE_URL($image)
{
if(!$image[0])
return $image;
$image[0] = explode('/wp-content',$image[0]);
if(isset($image[0][1])){
$ext = pathinfo(WP_CONTENT_DIR.$image[0][1], PATHINFO_EXTENSION);
if(file_exists(WP_CONTENT_DIR.$image[0][1]) && file_exists(WP_CONTENT_DIR.str_replace(['uploads',".$ext"],['smush-webp',".$ext.webp"],$image[0][1])))
$image[0][1] = str_replace(['uploads',".$ext"],['smush-webp',".$ext.webp"],$image[0][1]);
elseif($ext === 'png' && file_exists(WP_CONTENT_DIR.str_replace('.png','.jpg',$image[0][1])))
$image[0][1] = str_replace('.png','.jpg',$image[0][1]);
elseif($ext === 'jpg' && file_exists(WP_CONTENT_DIR.str_replace('.jpg','.png',$image[0][1])))
$image[0][1] = str_replace('.jpg','.png',$image[0][1]);
$image[0] = implode('/wp-content',$image[0]);
}
return $image;
}
add_action( 'wp_enqueue_scripts', function() {
wp_dequeue_style( 'classic-theme-styles' );
}, 20 );
function ca_deregister_woocommerce_block_styles() {
wp_deregister_style( 'wc-blocks-style' );
wp_dequeue_style( 'wc-blocks-style' );
}
add_action( 'enqueue_block_assets', 'ca_deregister_woocommerce_block_styles' );
// add_filter( 'woocommerce_enqueue_styles' , '__return_empty_array' );
// Replace src paths
// add_filter('wp_get_attachment_image_src', 'FILTER_IMAGE_URL', 10, 4); ?>
Did this file decode correctly?
Original Code
<?php
// add_filter('woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text');
// function woocommerce_custom_product_add_to_cart_text()
// {
// return __(ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Buy Now', 'woocommerce');
// }
//
// add_filter( 'woocommerce_rest_check_permissions', 'my_woocommerce_rest_check_permissions', 90, 4 );
//
// function my_woocommerce_rest_check_permissions( $permission, $context, $object_id, $post_type ){
// return true;
// }
add_filter('mod_rewrite_rules', 'fix_rewritebase');
function fix_rewritebase($rules){
$home_root = parse_url(home_url());
if ( isset( $home_root['path'] ) ) {
$home_root = trailingslashit($home_root['path']);
} else {
$home_root = '/';
}
$wpml_root = parse_url(get_option('home'));
if ( isset( $wpml_root['path'] ) ) {
$wpml_root = trailingslashit($wpml_root['path']);
} else {
$wpml_root = '/';
}
$rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules);
$rules = str_replace("RewriteRule . $home_root", "RewriteRule . $wpml_root", $rules);
return $rules;
}
add_filter( 'woocommerce_product_add_to_cart_text', 'filter_woocommerce_product_add_to_cart_text', 10, 2 );
add_filter( 'woocommerce_product_single_add_to_cart_text', 'filter_woocommerce_product_add_to_cart_text', 10, 2 );
function filter_woocommerce_product_add_to_cart_text( $add_to_cart_text, $product ) {
// Price empty and Product is out of stock
if ( $product->get_stock_status() == 'outofstock' )
$add_to_cart_text = ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'This product is not available';
return $add_to_cart_text;
}
add_filter( 'auto_update_plugin', '__return_false' );
add_filter( 'auto_update_theme', '__return_false' );
/**
* Auto On hold all WooCommerce orders.
*/
function custom_woocommerce_auto_complete_order( $order_id ) {
if ( ! $order_id ) {
return;
}
$order = wc_get_order( $order_id );
if( 'processing'== $order->get_status() ) {
$order->update_status( 'on-hold' );
}
}
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'SAR': $currency_symbol = ICL_LANGUAGE_CODE === 'ar' ? '.' : 'SAR'; break;
}
return $currency_symbol;
}
add_filter( 'woocommerce_before_shop_loop', function () {
if (is_product_category([86,77])) {
echo '<section style="margin-bottom: 20px;" class="elementor-section elementor-top-section elementor-element elementor-element-40def97 elementor-section-full_width elementor-section-height-default elementor-section-height-default" data-id="40def97" data-element_type="section">
<div class="elementor-container elementor-column-gap-no">
<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fa87aa4" data-id="fa87aa4" data-element_type="column">
<div class="elementor-widget-wrap elementor-element-populated">
<div class="elementor-element elementor-element-c734283 elementor-widget elementor-widget-image" data-id="c734283" data-element_type="widget" data-widget_type="image.default">
<div class="elementor-widget-container">
<a href="https://test.pteam.sa/wp-content/uploads/2022/09/DOC-20220824-WA0005..pdf">
';
if(ICL_LANGUAGE_CODE === 'ar') {
echo '<img width="1903" height="917" src="https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1.jpg" class="attachment-full size-full wvs-archive-product-image" alt="" srcset="https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1.jpg.webp 1903w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-300x145.jpg 300w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-1024x493.jpg.webp 1024w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-768x370.jpg.webp 768w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-1536x740.jpg.webp 1536w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1-600x289.jpg.webp 600w" sizes="(max-width: 1903px) 100vw, 1903px">';
} else {
echo '<img width="1903" height="917" src="https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e.jpg" class="attachment-full size-full wvs-archive-product-image" alt="" srcset="https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e.jpg.webp 1903w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-300x145.jpg 300w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-1024x493.jpg.webp 1024w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-768x370.jpg.webp 768w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-1536x740.jpg.webp 1536w, https://test.pteam.sa/wp-content/uploads/2022/09/1903wx917h-download1e-600x289.jpg.webp 600w" sizes="(max-width: 1903px) 100vw, 1903px">';
}
echo' </a>
</div>
</div>
</div>
</div>
</div>
</section>';
}
});
// add_filter('woocommerce_after_single_product', 'hide_3d_button');
function hide_3d_button()
{
global $post;
if (!str_contains($post->post_excerpt, 'sketchfab'))
echo '<style> #show_3d { display: none } </style>';
}
// add_action('woocommerce_after_add_to_cart_button', 'custom_button_after_product_summary', 30);
function custom_button_after_product_summary()
{
global $product;
$current_user_id = get_current_user_id();
if ($current_user_id !== 0) {
$user_is_b2b = get_user_meta($current_user_id, 'b2bking_b2buser', true);
if ($user_is_b2b === "yes" && in_array(get_user_meta($current_user_id, 'b2bking_registration_role', true), ['role_21', 'role_2333'])) {
if ($product->is_type('variable'))
echo '
<script>
jQuery("form.variations_form").on("show_variation", function(event, data){
jQuery("#get_quote_button").on("click", () => location.href = "' . wc_get_page_permalink('myaccount') . 'bulkorder/?product_title=' . $product->get_title() . ' - " + data.variation_description.replace(/<\/?[^>]+(>|$)/g, "") + "&product_id=" + data.variation_id + "&quantity=" + jQuery("input[name=quantity]").val())
});
</script>
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="button" id="get_quote_button" class="single_add_to_cart_button button second" style="background-color:#ebe9eb">' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Get Quotation') . '</button>
<button type="submit" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
else
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<a href="' . wc_get_page_permalink('myaccount') . 'bulkorder/?product_title=' . $product->get_title() . '&product_id=' . $product->get_id() . '" class="button elementor-button">' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Get Quotation') . '</a>
<button type="submit" name="add-to-cart" value="' . $product->get_id() . '" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
} else {
if ($product->is_type('variable'))
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="submit" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
else
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="submit" name="add-to-cart" value="' . $product->get_id() . '" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
}
} else {
if ($product->is_type('variable'))
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="submit" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
else
echo '
<div style="display: flex; justify-content: center; justify-items: center; gap: 15px;">
<button type="submit" name="add-to-cart" value="' . $product->get_id() . '" class="single_add_to_cart_button button alt second">' . esc_html($product->single_add_to_cart_text()) . '</button>
</div>
';
}
echo ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'The price does not include additional taxes';
}
// add_action('woocommerce_before_account_navigation', 'add_account_type');
function add_account_type()
{
$current_user_id = get_current_user_id();
if ($current_user_id !== 0) {
$user_is_b2b = get_user_meta($current_user_id, 'b2bking_b2buser', true);
if ($user_is_b2b === "yes") {
$role = get_user_meta($current_user_id, 'b2bking_registration_role', true);
if ($role)
echo '<h4>' . get_the_title(apply_filters('wpml_object_id', str_replace('role_', '', $role), 'post', true)) . '</h4>';
else
echo '<h4>' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Normal Account') . '</h4>';
} else {
echo '<h4>' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Normal Account') . '</h4>';
}
}
}
function display_user_type()
{
$current_user_id = get_current_user_id();
if ($current_user_id !== 0) {
$user_is_b2b = get_user_meta($current_user_id, 'b2bking_b2buser', true);
if ($user_is_b2b === "yes") {
$role = get_user_meta($current_user_id, 'b2bking_registration_role', true);
if ($role)
return '<span>' . get_the_title(apply_filters('wpml_object_id', str_replace('role_', '', $role), 'post', true)) . '</span>';
else
return '<span>' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Normal Account') . '</span>';
} else {
return '<span>' . (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Normal Account') . '</span>';
}
}
}
// add_shortcode('user_type', 'display_user_type');
// add_action('woocommerce_before_account_navigation', 'we_will_contact_you', 1);
function we_will_contact_you()
{
if (isset($_GET['success'])) {
?>
<div class="woocommerce-notices-wrapper">
<div class="woocommerce-message" role="alert">
<?php echo ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'The request for quotation has been submitted, we will contact you as soon as possible to serve you better and you can follow your request from the conversations list' ?>
</div>
</div>
<div class="clear"></div>
<?php
}
}
function b2b_benefits()
{
?>
<div class="woocommerce-notices-wrapper" id="b2b_benefits">
<div class="woocommerce-info" role="alert">
<?php echo ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Register as a company account to benefit from discounts on bulk purchases' ?>
</div>
</div>
<div class="clear"></div>
<?php
}
// add_action('woocommerce_register_form_start', 'b2b_benefits', 1);
// add_filter('woocommerce_available_payment_gateways', 'show_hide_payment_methods');
function show_hide_payment_methods($available_gateways)
{
if(in_array(WC_Geolocation::get_ip_address(),['95.185.151.219']) && isset($available_gateways['cod']))
unset($available_gateways['cod']);
if (WC()->cart->total >= 50000) {
if (is_checkout() && !is_wc_endpoint_url())
wc_add_notice(__(ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Due to exceeding the upper limit for requests, upon completion of the request, it will be submitted to the relevant department and we will contact you as soon as possible to complete the rest of the application procedures'), 'notice');
if (isset($available_gateways['myfatoorah_v2'])) {
unset($available_gateways['myfatoorah_v2']);
}
} else {
if (isset($available_gateways['b2bking-invoice-gateway'])) {
unset($available_gateways['b2bking-invoice-gateway']);
}
}
return $available_gateways;
}
add_action('woocommerce_before_add_to_cart_quantity', 'add_total');
function add_total()
{
global $product;
$product_id = apply_filters( 'wpml_object_id', $product->get_id(), 'product', false, ICL_LANGUAGE_CODE );
$product = wc_get_product( $product_id );
$price = $product->get_price();
$currency_symbol = get_woocommerce_currency_symbol();
// echo sprintf('<div id="product_total_price" style="margin:auto;text-align:center;">%s %s<br /><span>%s</span><br /><span style="color:red">%s</span></div>', ICL_LANGUAGE_CODE === 'ar' ? ': ' : 'Total: ', '<span class="price"></span> ' . $currency_symbol, ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'The price does not include additional taxes', ( (!$product->is_in_stock() || $product->get_stock_quantity() == 0) && $var_result === false ) ? (ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'This product is not available') : '');
?>
<a href="https://wa.me/966557226628?text=<?= ICL_LANGUAGE_CODE === 'ar' ? (' : '. $product->get_title()) : ('I want this product: '.urlencode($product->get_title())) ?>" class="button-52"><?= ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Place order via WhatsApp'?></a>
<style>
.button-52 {
font-size: 16px;
text-align: center;
font-weight: 600!important;
width: 100%;
color: #fff;
background: #25D366;
border: 3px solid #25D366;
padding: 5px 35px 0 0;
margin: 5px 0 0;
position: relative;
line-height: 40px;
}
.button-52:hover {
background: transparent;
color: #000;
}
.button-52::after {
content: "";
background: rgb(0 0 0/0) var(--joinchat-ico) 50% no-repeat;
position: absolute;
top: 6px;
right: 10px;
width: 35px;
height: 35px;
filter: none;
}
.button-52:hover::after {
filter: invert(1);
}
</style>
<?php
echo sprintf('<div id="product_total_price" style="margin:auto;text-align:center;">%s <span class="price">0</span> %s<br /><span>%s</span></div>', ICL_LANGUAGE_CODE === 'ar' ? ': ' : 'Total: ', $currency_symbol, ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'The price does not include additional taxes');
?>
<script>
jQuery(".tm-extra-product-options-field")
.has(".cpf-type-upload:not(.tc-is-required)")
.css("display", "none");
function GET_PRICE() {
if (jQuery(".b2bking_tiered_active_price").length > 0) {
jQuery(".price .woocommerce-Price-amount.amount").hide();
return (
jQuery('[name="quantity"]').val() *
parseFloat(
jQuery(".b2bking_tiered_active_price")
.html()
.replace(/[^\d]/g, "")
.slice(0, -2)
)
);
} else if (jQuery(".FinalTotal").length > 0)
return parseFloat(
jQuery(".FinalTotal").html().replace(/[^\d]/g, "").slice(0, -2)
);
else if (jQuery("form .woocommerce-Price-amount.amount").length > 0)
return parseFloat(
jQuery("form .woocommerce-Price-amount.amount")
.html()
.replace(/[^\d]/g, "")
.slice(0, -2)
);
else return jQuery('[name="quantity"]').val() * <?php echo $price ?>;
}
setTimeout(() => jQuery("#product_total_price .price").html(GET_PRICE()), 500);
jQuery(".ButtonSelectorItem").on("click", () => {
if (jQuery('[name="quantity"]').val() > 0)
jQuery("#product_total_price").show();
else jQuery("#product_total_price").hide();
setTimeout(() => {
jQuery("#product_total_price .price").html(GET_PRICE());
}, 300);
});
jQuery('[name="quantity"]').on("input keyup change", () => {
if (jQuery('[name="quantity"]').val() > 0)
jQuery("#product_total_price").show();
else jQuery("#product_total_price").hide();
setTimeout(() => {
jQuery("#product_total_price .price").html(GET_PRICE());
}, 300);
});
</script>
<?php
}
add_action('woocommerce_register_form', 'wc_register_form_password_repeat', 1);
function wc_register_form_password_repeat()
{
?>
<p class="form-row form-row-wide">
<label for="reg_password2"><?php echo ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'Repeat Password' ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password2" id="reg_password2" value="<?php if (!empty($_POST['password2'])) echo esc_attr($_POST['password2']); ?>" />
</p>
<?php
}
add_filter('woocommerce_default_address_fields', 'adjust_requirement_of_checkout_address_fields');
function adjust_requirement_of_checkout_address_fields($fields)
{
$fields['company']['required'] = false;
$fields['address_2']['required'] = false;
$fields['state']['required'] = false;
$fields['postcode']['required'] = false;
return $fields;
}
// add_filter('woocommerce_billing_fields', 'adjust_requirement_of_checkout_contact_fields');
// function adjust_requirement_of_checkout_contact_fields($fields)
// {
// $fields['billing_email']['required'] = false;
// return $fields;
// }
// Display custom field on single product page
function d_notes_field()
{
$value = isset($_POST['notes_field']) ? sanitize_text_field($_POST['notes_field']) : '';
woocommerce_form_field('notes_field', array(
'type' => 'textarea',
'label' => __(ICL_LANGUAGE_CODE === 'ar' ? '' : 'Notes'),
'placeholder' => __(ICL_LANGUAGE_CODE === 'ar' ? ' ...' : 'Add your note here, please'),
'required' => false,
), esc_attr($value));
}
// add_action('woocommerce_before_add_to_cart_quantity', 'd_notes_field', 99999);
// add custom field data in to cart
function d_add_cart_item_data($cart_item, $product_id)
{
if (isset($_POST['notes_field'])) {
$cart_item['notes_field'] = sanitize_text_field($_POST['notes_field']);
}
return $cart_item;
}
// add_filter('woocommerce_add_cart_item_data', 'd_add_cart_item_data', 10, 2);
// load data from session
function d_get_cart_data_f_session($cart_item, $values)
{
if (!empty($values['notes_field'])) {
$cart_item['notes_field'] = $values['notes_field'];
}
return $cart_item;
}
// add_filter('woocommerce_get_cart_item_from_session', 'd_get_cart_data_f_session', 20, 2);
//add meta to order
function d_add_order_meta($item_id, $values)
{
if (!empty($values['notes_field'])) {
woocommerce_add_order_item_meta($item_id, 'notes_field', $values['notes_field']);
}
}
// add_action('woocommerce_add_order_item_meta', 'd_add_order_meta', 10, 2);
// display data in cart
function d_get_itemdata($other_data, $cart_item)
{
if (!empty($cart_item['notes_field'])) {
$other_data[] = array(
'name' => __(ICL_LANGUAGE_CODE === 'ar' ? '' : 'Notes'),
'value' => sanitize_text_field($cart_item['notes_field'])
);
}
return $other_data;
}
// add_filter('woocommerce_get_item_data', 'd_get_itemdata', 10, 2);
// display custom field data in order view
function d_dis_metadata_order($cart_item, $order_item)
{
if (!empty($order_item['notes_field'])) {
$cart_item_meta['notes_field'] = $order_item['notes_field'];
}
return $cart_item;
}
// add_filter('woocommerce_order_item_product', 'd_dis_metadata_order', 10, 2);
// add field data in email
function d_order_email_data($fields)
{
$fields['notes_field'] = __(ICL_LANGUAGE_CODE === 'ar' ? '' : 'Notes');
return $fields;
}
// add_filter('woocommerce_email_order_meta_fields', 'd_order_email_data');
// again order
function d_order_again_meta_data($cart_item, $order_item, $order)
{
if (!empty($order_item['notes_field'])) {
$cart_item_meta['notes_field'] = $order_item['notes_field'];
}
return $cart_item;
}
// add_filter('woocommerce_order_again_cart_item_data', 'd_order_again_meta_data', 10, 3);
add_filter('woocommerce_checkout_fields', 'override_checkout_city_fields');
function override_checkout_city_fields($fields)
{
global $woocommerce;
// Define here in the array your desired cities (Here an example of cities)
$option_cities = array(
"" => "", "" => "", " " => " ", " " => " ", "" => "", "" => "", " " => " ", "" => "", " " => " ", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => "", "" => ""
);
$country = $woocommerce->customer->get_shipping_country();
if ($country === 'SA') {
$fields['billing']['billing_city']['type'] = 'select';
$fields['billing']['billing_city']['options'] = $option_cities;
$fields['shipping']['shipping_city']['type'] = 'select';
$fields['shipping']['shipping_city']['options'] = $option_cities;
} else {
$fields['billing']['billing_city']['type'] = 'text';
$fields['shipping']['shipping_city']['type'] = 'text';
}
$fields['billing']['billing_phone']['label'] = $fields['shipping']['shipping_phone']['label'] = ICL_LANGUAGE_CODE === 'ar' ? ' ( )' : 'Mobile number (preferably a WhatsApp number)';
return $fields;
}
add_action('woocommerce_cart_calculate_fees', 'custom_cod_fee', 10, 1);
function custom_cod_fee($cart)
{
if (is_admin() && !defined('DOING_AJAX'))
return;
if ('cod' === WC()->session->get('chosen_payment_method')) {
$cart->add_fee(ICL_LANGUAGE_CODE === 'ar' ? ' ' : 'COD Fee', 30, true);
}
}
add_action('wp_footer', 'custom_checkout_jqscript');
function custom_checkout_jqscript()
{
if (is_checkout() && !is_wc_endpoint_url()) :
?>
<script type="text/javascript">
jQuery(function($) {
$('form.checkout').on('change', 'input[name="payment_method"]', function() {
$(document.body).trigger('update_checkout');
});
});
</script>
<?php
endif;
}
function my_hide_shipping_when_free_is_available($rates)
{
$free = array();
foreach ($rates as $rate_id => $rate) {
if ('free_shipping' === $rate->method_id) {
$free[$rate_id] = $rate;
break;
}
}
return !empty($free) ? $free : $rates;
}
add_filter('woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 100);
add_action('wp_head', 'Marketing_TAGS');
function Marketing_TAGS()
{
?>
<meta name="facebook-domain-verification" content="ig5ltz0jiq2qr18ulzhf304yu1un8o" />
<?php
};
function FILTER_IMAGE_URL($image)
{
if(!$image[0])
return $image;
$image[0] = explode('/wp-content',$image[0]);
if(isset($image[0][1])){
$ext = pathinfo(WP_CONTENT_DIR.$image[0][1], PATHINFO_EXTENSION);
if(file_exists(WP_CONTENT_DIR.$image[0][1]) && file_exists(WP_CONTENT_DIR.str_replace(['uploads',".$ext"],['smush-webp',".$ext.webp"],$image[0][1])))
$image[0][1] = str_replace(['uploads',".$ext"],['smush-webp',".$ext.webp"],$image[0][1]);
elseif($ext === 'png' && file_exists(WP_CONTENT_DIR.str_replace('.png','.jpg',$image[0][1])))
$image[0][1] = str_replace('.png','.jpg',$image[0][1]);
elseif($ext === 'jpg' && file_exists(WP_CONTENT_DIR.str_replace('.jpg','.png',$image[0][1])))
$image[0][1] = str_replace('.jpg','.png',$image[0][1]);
$image[0] = implode('/wp-content',$image[0]);
}
return $image;
}
add_action( 'wp_enqueue_scripts', function() {
wp_dequeue_style( 'classic-theme-styles' );
}, 20 );
function ca_deregister_woocommerce_block_styles() {
wp_deregister_style( 'wc-blocks-style' );
wp_dequeue_style( 'wc-blocks-style' );
}
add_action( 'enqueue_block_assets', 'ca_deregister_woocommerce_block_styles' );
// add_filter( 'woocommerce_enqueue_styles' , '__return_empty_array' );
// Replace src paths
// add_filter('wp_get_attachment_image_src', 'FILTER_IMAGE_URL', 10, 4);
Function Calls
None |
Stats
MD5 | d01579a873546b24825487a966578d32 |
Eval Count | 0 |
Decode Time | 51 ms |