hadivi
Forum Replies Created
-
Great support!
I applied your instruction and it’s doing so well. Thank you very much.
Wish you have more success!Hi Greg,
This one worked! Thank you a lot. Have a good day!add_filter( “adverts_form_load”, “disable_currencies_form_load” );
function disable_currencies_form_load( $form ) {
if( $form[‘name’] != “advert” ) {
return $form;
}
foreach( $form[“field”] as $key => $field ) {
if( $field[“name”] == “adverts_price” ) {
$form[“field”][$key][“class”] = “”;
$form[“field”][$key][“filter”] = array();
}
}
return $form;
}
add_filter( “adverts_get_the_price”, “disable_currencies_price”, 10, 2 );
function disable_currencies_price( $price_formatted, $price ) {
return $price;
}I tried to add this code below follow your instruction 2 year ago but it doesn’t work
`add_filter( “adverts_form_load”, “customize_adverts_add” );
function customize_adverts_add( $form ) {
if( $form[‘name’] != “advert” ) {
return $form;
}
foreach( $form[“field”] as $key => $field ) {
if( $field[“name”] == “adverts_price” ) {
$form[“field”][$key][“class”] = “”;
$form[“field”][$key][“filter”] = array();
}
}
return $form;
}