{"id":4351,"date":"2022-01-28T18:33:25","date_gmt":"2022-01-28T18:33:25","guid":{"rendered":"https:\/\/iben.pro\/elta-kourier-filters\/"},"modified":"2022-01-28T20:01:19","modified_gmt":"2022-01-28T20:01:19","slug":"woo-elta-filters","status":"publish","type":"page","link":"https:\/\/iben.pro\/el\/woo-elta-filters\/","title":{"rendered":"\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4351\" class=\"elementor elementor-4351 elementor-4317\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3d333a68 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3d333a68\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-40bea363\" data-id=\"40bea363\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-3961f3f9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3961f3f9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-6b3fd973\" data-id=\"6b3fd973\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8320e46 single_main_title elementor-widget elementor-widget-heading\" data-id=\"8320e46\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">WooCommerce ELTA Courier Voucher<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-24af159f single_main_title elementor-widget elementor-widget-heading\" data-id=\"24af159f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">\u03a7\u03c1\u03ae\u03c3\u03b9\u03bc\u03b1 filters<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2a95267b single_subtitle elementor-widget elementor-widget-heading\" data-id=\"2a95267b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0392\u03ac\u03c1\u03bf\u03c2<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4138d8bb main_text_1 elementor-widget elementor-widget-text-editor\" data-id=\"4138d8bb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u03a3\u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1 \u03bf\u03c1\u03af\u03b6\u03bf\u03c5\u03bc\u03b5 \u03bc\u03ad\u03b3\u03b9\u03c3\u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c4\u03b1 2 \u03ba\u03b9\u03bb\u03ac \u03b5\u03ac\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03bf 2, \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03ac \u03b8\u03b1 \u03c0\u03ac\u03c1\u03b5\u03b9 \u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c0\u03bf\u03c5 \u03ad\u03c7\u03b5\u03b9 \u03b1\u03c5\u03c4\u03cc\u03bc\u03b1\u03c4\u03b1 \u03c5\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03c4\u03b5\u03af \u03b1\u03c0\u03cc \u03c4\u03b1 \u03c0\u03c1\u03bf\u03ca\u03cc\u03bd\u03c4\u03b1<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-187783b9 elementor-widget elementor-widget-text-editor\" data-id=\"187783b9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre class=\"brush: php; title: ; notranslate\" title=\"\">\nfunction myweight($weight){\nif ($weight &gt; 2){\n$newweight = 2;\n}else{\n$newweight = $weight;\n}\n\nreturn $newweight;\n}\n\nadd_filter( &#039;iben_elta_filter_weight_order_metabox&#039;, &#039;myweight&#039; );\n<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-25d4836b single_subtitle elementor-widget elementor-widget-heading\" data-id=\"25d4836b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0392\u03ac\u03c1\u03bf\u03c2 \u03b1\u03c0\u03cc \u03c4\u03b9\u03c2 \u03b4\u03b9\u03b1\u03c3\u03c4\u03ac\u03c3\u03b5\u03b9\u03c2 (\u03bf\u03b3\u03ba\u03bf\u03c7\u03c1\u03ad\u03c9\u03c3\u03b7 )<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-571ae2b0 main_text_1 elementor-widget elementor-widget-text-editor\" data-id=\"571ae2b0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u03a3\u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1 \u03bf\u03c1\u03af\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c5\u03c0\u03bf\u03bb\u03bf\u03b3\u03af\u03b6\u03bf\u03bd\u03c4\u03b1\u03c2 \u03c4\u03bf \u03cd\u03c8\u03bf\u03c2 * \u03c0\u03bb\u03ac\u03c4\u03bf\u03c2 * \u03b2\u03ac\u03b8\u03bf\u03c2 \/ 5000 \u03c4\u03bf\u03c5 \u03ba\u03ac\u03b8\u03b5 \u03c0\u03c1\u03bf\u03ca\u03cc\u03bd\u03c4\u03bf\u03c2 \u03c4\u03b7\u03c2 \u03c0\u03b1\u03c1\u03b1\u03b3\u03b3\u03b5\u03bb\u03af\u03b1\u03c2. \u0398\u03b1 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b7\u03b8\u03b5\u03af \u03b7 \u03bc\u03b5\u03b3\u03b1\u03bb\u03cd\u03c4\u03b5\u03c1\u03b7 \u03c4\u03b9\u03bc\u03ae. \u0395\u03af\u03c4\u03b5 \u03b7 \u03bf\u03b3\u03ba\u03bf\u03c7\u03c1\u03ad\u03c9\u03c3\u03b7 \u03b5\u03af\u03c4\u03b5 \u03c4\u03bf \u03c3\u03c5\u03bd\u03bf\u03bb\u03b9\u03ba\u03cc \u03b2\u03ac\u03c1\u03bf\u03c2.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e243969 elementor-widget elementor-widget-text-editor\" data-id=\"e243969\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre class=\"brush: php; title: ; notranslate\" title=\"\">\nfunction iben_change_weight($weight, $order_id){\n\t\t\t\n\t$order = wc_get_order($order_id);\n\n\tif ( !is_a( $order, &#039;WC_Order&#039; )  ){\n\t\treturn;\n\t}\n\t\n    $total_weight_dim = 0;\n\t$final_weight = 0;\n\n\tforeach( $order-&gt;get_items() as $item_id =&gt; $product_item ){\n\t\t$quantity = $product_item-&gt;get_quantity(); \/\/ get quantity\n\n\t\t$product = $product_item-&gt;get_product(); \/\/ get the WC_Product object\n\n\t\tif( $product ) {\n\n\t\t\t$height = ($product-&gt;get_height() &gt;= 0 ? $product-&gt;get_height() : 0);\n\t\t\t$width = ($product-&gt;get_width() &gt;= 0 ? $product-&gt;get_width() : 0);\n\t\t\t$length = ($product-&gt;get_length() &gt;= 0 ? $product-&gt;get_length() : 0);\n\n            $total_weight_dim += $quantity * (($height * $width * $length) \/ 5000);\n\t    }\n\n\t}\n    \n\t\/\/&amp;&amp; $weight != 0\n    if ($total_weight_dim &gt; $weight){\n        \n        $final_weight = $total_weight_dim;\n    }else{\n        $final_weight = $weight;\n    }\n\n    return $final_weight;\n    \n}\n\n\nadd_filter(&#039;iben_elta_filter_weight_order_metabox&#039;, &#039;iben_change_weight&#039;, 10, 2);\n\n<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-367ad76a single_subtitle elementor-widget elementor-widget-heading\" data-id=\"367ad76a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u03a4\u03b7\u03bb\u03ad\u03c6\u03c9\u03bd\u03bf 2 \u03ae \u03ba\u03b9\u03bd\u03b7\u03c4\u03cc \u03c3\u03b5 custom \u03c0\u03b5\u03b4\u03af\u03bf<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-46b0311e main_text_1 elementor-widget elementor-widget-text-editor\" data-id=\"46b0311e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u0395\u03b1\u03bd \u03ad\u03c7\u03b5\u03c4\u03b5 custom \u03c0\u03b5\u03b4\u03af\u03bf \u03c3\u03c4\u03bf checkout, \u03c0\u03c7 \u039a\u03b9\u03bd\u03b7\u03c4\u03cc \u03ba\u03b1\u03b9 meta name \u03b5\u03af\u03bd\u03b1\u03b9 _billing_mobile \u03ba\u03b1\u03bd\u03ad\u03bd\u03b1 \u03c0\u03c1\u03cc\u03b2\u03bb\u03b7\u03bc\u03b1.<\/p><p>\u03a3\u03b5 \u03ac\u03bb\u03bb\u03b7 \u03c0\u03b5\u03c1\u03af\u03c0\u03c4\u03c9\u03c3\u03b7 \u03b5\u03b1\u03bd \u03c4\u03bf custom \u03c0\u03b5\u03b4\u03af\u03bf \u03c3\u03b1\u03c2 \u03ad\u03c7\u03b5\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03cc meta name \u03c4\u03cc\u03c4\u03b5 \u03b8\u03b1 \u03c0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03bd\u03b1 \u03c4\u03c1\u03ad\u03be\u03b5\u03c4\u03b5 \u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03c3\u03c4\u03bf \u03b1\u03c1\u03c7\u03b5\u03af\u03bf chilld\u00a0 functions.php \u03ba\u03b1\u03b9 \u03b1\u03c0\u03bb\u03ac \u03b1\u03bb\u03bb\u03ac\u03be\u03c4\u03b5 \u03c4\u03bf \u03cc\u03bd\u03bf\u03bc\u03b1 <b>_billing_mobile<\/b> \u03bc\u03b5 \u03c4\u03bf \u03b4\u03b9\u03ba\u03cc \u03c3\u03b1\u03c2 meta \u03cc\u03bd\u03bf\u03bc\u03b1.<\/p><p>\u0397 \u03ba\u03ac\u03c4\u03c9 \u03c0\u03b1\u03cd\u03bb\u03b1 ( _ ) \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03c0\u03b1\u03c1\u03b1\u03af\u03c4\u03b7\u03c4\u03b7.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3523fbee elementor-widget elementor-widget-text-editor\" data-id=\"3523fbee\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre class=\"brush: php; title: ; notranslate\" title=\"\">function mycustomphonefield(){\n\nreturn &#039;_billing_mobile&#039;;\n}\n\nadd_filter( &#039;iben_elta_filter_phone2_metafield_order_metabox&#039;, &#039;mycustomphonefield&#039; );\n<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1ab5c20d single_subtitle elementor-widget elementor-widget-heading\" data-id=\"1ab5c20d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0386\u03bb\u03bb\u03b1 filters<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-41e1e876 main_text_1 elementor-widget elementor-widget-text-editor\" data-id=\"41e1e876\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>iben_elta_filter_comments_order_metabox<\/p><p>\u00a0<\/p><p>\u0393\u03b9\u03b1 \u03c4\u03b1 \u03c3\u03c7\u03cc\u03bb\u03b9\u03b1 \/ \u03c0\u03b1\u03c1\u03b1\u03c4\u03b7\u03c1\u03ae\u03c3\u03b5\u03b9\u03c2 \u03c4\u03bf\u03c5 voucher<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1eb0d396 main_text_1 elementor-widget elementor-widget-text-editor\" data-id=\"1eb0d396\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div>\n<div>iben_elta_filter_cashdelivery_order_metabox<\/div>\n<div>&nbsp;<\/div>\n<div>\u0393\u03b9\u03b1 \u03c4\u03b7\u03bd \u03b1\u03bd\u03c4\u03b9\u03ba\u03b1\u03c4\u03b1\u03b2\u03bf\u03bb\u03ae \u03c4\u03bf\u03c5 voucher<\/div>\n<\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-23180f47 single_subtitle elementor-widget elementor-widget-heading\" data-id=\"23180f47\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0391\u03bd\u03b1\u03b3\u03bd\u03ce\u03c1\u03b9\u03c3\u03b7 3rd party \u03c0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03b1\u03bd\u03c4\u03b9\u03ba\u03b1\u03c4\u03b1\u03b2\u03bf\u03bb\u03ae\u03c2<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1382ccaf main_text_1 elementor-widget elementor-widget-text-editor\" data-id=\"1382ccaf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u03a3\u03b5 \u03ba\u03ac\u03c0\u03bf\u03b9\u03b5\u03c2 \u03c0\u03b5\u03c1\u03b9\u03c0\u03c4\u03ce\u03c3\u03b5\u03b9\u03c2 \u03c0\u03bf\u03c5 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c4\u03b1\u03b9 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf \u03c0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae\u03c2 (\u03b1\u03bd\u03c4\u03b9\u03ba\u03b1\u03c4\u03b1\u03b2\u03bf\u03bb\u03ae) \u03b1\u03c0\u03cc \u03ba\u03ac\u03c0\u03bf\u03b9\u03bf \u03ac\u03bb\u03bb\u03bf plugin \u03ae custom. \u03a3\u03b5 \u03b1\u03c5\u03c4\u03ae \u03c4\u03b7\u03bd \u03c0\u03b5\u03c1\u03af\u03c0\u03c4\u03c9\u03c3\u03b7 \u03c4\u03bf plugin \u03b4\u03b5\u03bd \u03b3\u03bd\u03c9\u03c1\u03af\u03b6\u03b5\u03b9 \u03b5\u03b1\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03bd\u03c4\u03b9\u03ba\u03b1\u03c4\u03b1\u03b2\u03bf\u03bb\u03ae \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03c0\u03c1\u03bf\u03c3\u03c4\u03b5\u03b8\u03b5\u03af \u03b1\u03c5\u03c4\u03cc\u03bc\u03b1\u03c4\u03b1 \u03c3\u03c4\u03bf \u03c0\u03b5\u03b4\u03af\u03bf.\u00a0<\/p><p><b>alg_custom_gateway_1 = <\/b>\u0395\u03af\u03bd\u03b1\u03b9 \u03c4\u03bf ID\u00a0 \u03c4\u03b7\u03c2 \u03bc\u03b5\u03b8\u03cc\u03b4\u03bf\u03c5 \u03c0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae\u03c2<\/p><p>\u03a4\u03bf \u03c6\u03af\u03bb\u03c4\u03c1\u03bf \u03b5\u03af\u03bd\u03b1\u03b9 \u03b4\u03b9\u03b1\u03b8\u03ad\u03c3\u03b9\u03bc\u03bf \u03b3\u03b9\u03b1 \u03c4\u03b7\u03bd <strong>\u03ad\u03ba\u03b4\u03bf\u03c3\u03b7 &gt; v.1.6.0.1<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-46cd023f elementor-widget elementor-widget-text-editor\" data-id=\"46cd023f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre class=\"brush: php; title: ; notranslate\" title=\"\">function iben_cash_delivery_add_alg_custom1(){\n\nreturn $payments = array(&#039;alg_custom_gateway_1&#039;);\n\n}\n\nadd_filter(&#039;iben_elta_filter_cashdelivery_payments_order_metabox&#039;, &#039;iben_cash_delivery_add_alg_custom1&#039;);\n<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-69ba8168 single_subtitle elementor-widget elementor-widget-heading\" data-id=\"69ba8168\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u03a6\u03bf\u03c1\u03bc\u03ac\u03c4 \u03c4\u03b7\u03bb\u03b5\u03c6\u03ce\u03bd\u03bf\u03c5<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6096bd7 main_text_1 elementor-widget elementor-widget-text-editor\" data-id=\"6096bd7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u0397 \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03c3\u03c5\u03bd\u03ac\u03c1\u03c4\u03b7\u03c3\u03b7 \u03b8\u03b1 \u03b4\u03b9\u03bf\u03c1\u03b8\u03ce\u03c3\u03b5\u03b9 \u03c4\u03b1 \u03ba\u03b9\u03bd\u03b7\u03c4\u03ac \u03ae \u03c4\u03b1 \u03c3\u03c4\u03b1\u03b8\u03b5\u03c1\u03ac \u03c4\u03b7\u03bb\u03ad\u03c6\u03c9\u03bd\u03b1 \u03c3\u03b5 10 \u03b1\u03c1\u03b9\u03b8\u03bc\u03bf\u03cd\u03c2<\/p><p>\u00a0<\/p><p>\u03c0\u03c7<\/p><p>+30 693 82 12 126 -&gt;6938212126<\/p><p>+30 6938212126 -&gt;6938212126<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-119e12c5 elementor-widget elementor-widget-text-editor\" data-id=\"119e12c5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<pre class=\"brush: php; title: ; notranslate\" title=\"\">\/\/ require &gt;= 1.7.2\n\nfunction iben_elta_change_phone_format($phone){\n\t$country_code = &#039;30&#039;;\n\tif ($phone &amp;&amp; strlen($phone) &gt; 10){\t\t\n\t\t\/\/ remove spaces\n\t\t$phone = str_replace(&quot; &quot;,&quot;&quot;,$phone);\n\t\t\/\/ remove +30\n\t\t$phone = preg_replace(&quot;\/^\\+?{$country_code}\/&quot;, &#039;&#039;,$phone);\n\t\treturn trim($phone);\n\t}else{\n\t\treturn $phone;\n\t}\t\n}\n\nadd_filter(&#039;iben_elta_phone_format&#039;, &#039;iben_elta_change_phone_format&#039;, 10);\n<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>WooCommerce ELTA Courier Voucher \u03a7\u03c1\u03ae\u03c3\u03b9\u03bc\u03b1 filters \u0392\u03ac\u03c1\u03bf\u03c2 \u03a3\u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1 \u03bf\u03c1\u03af\u03b6\u03bf\u03c5\u03bc\u03b5 \u03bc\u03ad\u03b3\u03b9\u03c3\u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c4\u03b1 2 \u03ba\u03b9\u03bb\u03ac \u03b5\u03ac\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03bf 2, \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03ac \u03b8\u03b1 \u03c0\u03ac\u03c1\u03b5\u03b9 \u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c0\u03bf\u03c5 \u03ad\u03c7\u03b5\u03b9 \u03b1\u03c5\u03c4\u03cc\u03bc\u03b1\u03c4\u03b1 \u03c5\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03c4\u03b5\u03af \u03b1\u03c0\u03cc \u03c4\u03b1 \u03c0\u03c1\u03bf\u03ca\u03cc\u03bd\u03c4\u03b1 function myweight($weight){ if ($weight &amp;gt; 2){ $newweight = 2; }else{ $newweight = $weight; } return $newweight; } add_filter( 'iben_elta_filter_weight_order_metabox', 'myweight' ); \u0392\u03ac\u03c1\u03bf\u03c2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4351","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters - iBen<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/iben.pro\/el\/woo-elta-filters\/\" \/>\n<meta property=\"og:locale\" content=\"el_GR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters - iBen\" \/>\n<meta property=\"og:description\" content=\"WooCommerce ELTA Courier Voucher \u03a7\u03c1\u03ae\u03c3\u03b9\u03bc\u03b1 filters \u0392\u03ac\u03c1\u03bf\u03c2 \u03a3\u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1 \u03bf\u03c1\u03af\u03b6\u03bf\u03c5\u03bc\u03b5 \u03bc\u03ad\u03b3\u03b9\u03c3\u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c4\u03b1 2 \u03ba\u03b9\u03bb\u03ac \u03b5\u03ac\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03bf 2, \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03ac \u03b8\u03b1 \u03c0\u03ac\u03c1\u03b5\u03b9 \u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c0\u03bf\u03c5 \u03ad\u03c7\u03b5\u03b9 \u03b1\u03c5\u03c4\u03cc\u03bc\u03b1\u03c4\u03b1 \u03c5\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03c4\u03b5\u03af \u03b1\u03c0\u03cc \u03c4\u03b1 \u03c0\u03c1\u03bf\u03ca\u03cc\u03bd\u03c4\u03b1 function myweight($weight){ if ($weight &amp;gt; 2){ $newweight = 2; }else{ $newweight = $weight; } return $newweight; } add_filter( &#039;iben_elta_filter_weight_order_metabox&#039;, &#039;myweight&#039; ); \u0392\u03ac\u03c1\u03bf\u03c2 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iben.pro\/el\/woo-elta-filters\/\" \/>\n<meta property=\"og:site_name\" content=\"iBen\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-28T20:01:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0395\u03ba\u03c4\u03b9\u03bc\u03ce\u03bc\u03b5\u03bd\u03bf\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2 \u03b1\u03bd\u03ac\u03b3\u03bd\u03c9\u03c3\u03b7\u03c2\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 \u03bb\u03b5\u03c0\u03c4\u03ac\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/iben.pro\\\/el\\\/woo-elta-filters\\\/\",\"url\":\"https:\\\/\\\/iben.pro\\\/el\\\/woo-elta-filters\\\/\",\"name\":\"\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters - iBen\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/iben.pro\\\/el\\\/#website\"},\"datePublished\":\"2022-01-28T18:33:25+00:00\",\"dateModified\":\"2022-01-28T20:01:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/iben.pro\\\/el\\\/woo-elta-filters\\\/#breadcrumb\"},\"inLanguage\":\"el\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/iben.pro\\\/el\\\/woo-elta-filters\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/iben.pro\\\/el\\\/woo-elta-filters\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/iben.pro\\\/el\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/iben.pro\\\/el\\\/#website\",\"url\":\"https:\\\/\\\/iben.pro\\\/el\\\/\",\"name\":\"iBen\",\"description\":\"iBen\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/iben.pro\\\/el\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"el\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters - iBen","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/iben.pro\/el\/woo-elta-filters\/","og_locale":"el_GR","og_type":"article","og_title":"\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters - iBen","og_description":"WooCommerce ELTA Courier Voucher \u03a7\u03c1\u03ae\u03c3\u03b9\u03bc\u03b1 filters \u0392\u03ac\u03c1\u03bf\u03c2 \u03a3\u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03c0\u03b1\u03c1\u03ac\u03b4\u03b5\u03b9\u03b3\u03bc\u03b1 \u03bf\u03c1\u03af\u03b6\u03bf\u03c5\u03bc\u03b5 \u03bc\u03ad\u03b3\u03b9\u03c3\u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c4\u03b1 2 \u03ba\u03b9\u03bb\u03ac \u03b5\u03ac\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03ac\u03bd\u03c9 \u03b1\u03c0\u03bf 2, \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03ac \u03b8\u03b1 \u03c0\u03ac\u03c1\u03b5\u03b9 \u03c4\u03bf \u03b2\u03ac\u03c1\u03bf\u03c2 \u03c0\u03bf\u03c5 \u03ad\u03c7\u03b5\u03b9 \u03b1\u03c5\u03c4\u03cc\u03bc\u03b1\u03c4\u03b1 \u03c5\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03c4\u03b5\u03af \u03b1\u03c0\u03cc \u03c4\u03b1 \u03c0\u03c1\u03bf\u03ca\u03cc\u03bd\u03c4\u03b1 function myweight($weight){ if ($weight &amp;gt; 2){ $newweight = 2; }else{ $newweight = $weight; } return $newweight; } add_filter( 'iben_elta_filter_weight_order_metabox', 'myweight' ); \u0392\u03ac\u03c1\u03bf\u03c2 [&hellip;]","og_url":"https:\/\/iben.pro\/el\/woo-elta-filters\/","og_site_name":"iBen","article_modified_time":"2022-01-28T20:01:19+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u0395\u03ba\u03c4\u03b9\u03bc\u03ce\u03bc\u03b5\u03bd\u03bf\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2 \u03b1\u03bd\u03ac\u03b3\u03bd\u03c9\u03c3\u03b7\u03c2":"2 \u03bb\u03b5\u03c0\u03c4\u03ac"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iben.pro\/el\/woo-elta-filters\/","url":"https:\/\/iben.pro\/el\/woo-elta-filters\/","name":"\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters - iBen","isPartOf":{"@id":"https:\/\/iben.pro\/el\/#website"},"datePublished":"2022-01-28T18:33:25+00:00","dateModified":"2022-01-28T20:01:19+00:00","breadcrumb":{"@id":"https:\/\/iben.pro\/el\/woo-elta-filters\/#breadcrumb"},"inLanguage":"el","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iben.pro\/el\/woo-elta-filters\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iben.pro\/el\/woo-elta-filters\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iben.pro\/el\/"},{"@type":"ListItem","position":2,"name":"\u0395\u039b\u03a4\u0391 \u03ba\u03bf\u03cd\u03c1\u03b9\u03b5\u03c1 Filters"}]},{"@type":"WebSite","@id":"https:\/\/iben.pro\/el\/#website","url":"https:\/\/iben.pro\/el\/","name":"iBen","description":"iBen","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iben.pro\/el\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"el"}]}},"_links":{"self":[{"href":"https:\/\/iben.pro\/el\/wp-json\/wp\/v2\/pages\/4351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iben.pro\/el\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iben.pro\/el\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iben.pro\/el\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iben.pro\/el\/wp-json\/wp\/v2\/comments?post=4351"}],"version-history":[{"count":1,"href":"https:\/\/iben.pro\/el\/wp-json\/wp\/v2\/pages\/4351\/revisions"}],"predecessor-version":[{"id":4392,"href":"https:\/\/iben.pro\/el\/wp-json\/wp\/v2\/pages\/4351\/revisions\/4392"}],"wp:attachment":[{"href":"https:\/\/iben.pro\/el\/wp-json\/wp\/v2\/media?parent=4351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}