Skip to content

Tag: wordpress

Get the value of a string inside a function

so there’s this function: That I would like to get the value from. Let’s say, is it ‘delivery’ or ‘pickup’? Then, I need to know if the product this whole code refers to is set as a ‘pickup’ or ‘delivery’ – each product is assigned to only one …

MySQL find Array Values in DB Array field

i have an array, that can contain different values for example: Array ( [0] => Allgemeine Pharmazie [1] => Geriatrische Pharmazie ) The WordPress DB contains in the meta_value the following array: a:4:{i:0;s:20:”Allgemeine Pharmazie”;i:1;s:22:”Geriatrische Pharmazie”;i:2;s:16:&#8…