PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
wp-all-export-pro
/
helpers
<?php function pmxe_prepare_price( $price, $disable_prepare_price, $prepare_price_to_woo_format, $convert_decimal_separator ){ if ( $disable_prepare_price ){ $price = preg_replace("/[^0-9\.,]/","", $price); } if ( $convert_decimal_separator and strlen($price) > 3) { $decimal_sep = get_option( 'woocommerce_price_decimal_sep', '.' ); $thousand_sep = get_option( 'woocommerce_price_thousand_sep', ',' ); $comma_position = strrpos($price, ",", strlen($price) - 3); if ($comma_position !== false) { $price = str_replace(".", "", $price); $comma_position = strrpos($price, ","); $price = str_replace(",", "", substr_replace($price, ".", $comma_position, 1)); } else { $comma_position = strrpos($price, ".", strlen($price) - 3); if ($comma_position !== false) { $price = str_replace(",", "", $price); } elseif(strlen($price) > 4) { $comma_position = strrpos($price, ",", strlen($price) - 4); if ($comma_position and strlen($price) - $comma_position == 4) { $price = str_replace(",", "", $price); } else { $comma_position = strrpos($price, ".", strlen($price) - 4); if ($comma_position and strlen($price) - $comma_position == 4) { $price = str_replace(".", "", $price); } } } } } if ( $prepare_price_to_woo_format ){ $price = str_replace(",", ".", $price); $price = str_replace(",", ".", str_replace(".", "", preg_replace("%\.([0-9]){1,2}?$%", ",$0", $price))); $price = ("" != $price) ? number_format( (double) $price, 2, '.', '' ) : ""; } return apply_filters('pmxe_price', $price); }
[-] wp_all_export_check_children_assign.php
[edit]
[-] wp_all_export_url_title.php
[edit]
[-] wp_all_export_rmdir.php
[edit]
[-] wp_all_export_generate_export_file.php
[edit]
[-] wp_all_export_clear_xss.php
[edit]
[-] wp_all_export_write_article.php
[edit]
[-] wp_all_export_comments_clauses.php
[edit]
[-] wp_redirect_or_javascript.php
[edit]
[-] wp_all_export_rand_char.php
[edit]
[-] str_getcsv.php
[edit]
[-] wp_all_export_get_export_format.php
[edit]
[-] wp_all_export_remove_source.php
[edit]
[-] pmxe_render_xml_text.php
[edit]
[-] pmxe_render_xml_element.php
[edit]
[-] wp_all_export_reverse_rules_html.php
[edit]
[-] wp_all_export_filter_xml_element_name.php
[edit]
[-] wp_all_export_is_compatible.php
[edit]
[-] wp_all_export_remove_before_post_except_toolset_actions.php
[edit]
[-] pmxe_functions.php
[edit]
[-] wp_all_export_break_into_files.php
[edit]
[-] wp_all_export_get_cpt_name.php
[edit]
[-] wp_all_export_pre_user_query.php
[edit]
[-] get_taxonomies_by_object_type.php
[edit]
[-] wp_all_export_parse_field_name.php
[edit]
[+]
..
[-] wp_all_export_secure_file.php
[edit]
[-] pmxe_render_xml_attributes.php
[edit]
[-] pmxe_prepare_price.php
[edit]
[-] wp_all_export_posts_where.php
[edit]
[-] wp_all_export_remove_colons.php
[edit]
[-] wp_all_export_terms_clauses.php
[edit]
[-] wp_all_export_posts_join.php
[edit]
[-] backward.php
[edit]
[-] pmxe_filter.php
[edit]