وردپرس

Prefix w/ underscore, or duplicate data in order meta


If I have a custom field, for instance a field for phone extension, and I don’t prefix the name with an underscore, then this plugin creates 2 postmeta rows, one for the name I set, and one with an underscore prefix.

So, if I created that field with name “billing_phone_ext”, then I end up with 2 postmeta rows, one with meta_key “billing_phone_ext“, and one with meta_key “_billing_phone_ext“.

Simply naming the field with the underscore prefix eliminates the problem, but we now must perform some DB maintenance and get rid of the extra rows. 1000s of rows.

Is there a way to have a name without underscore prefix?

پایان/ مرجع وب و فناوری

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا