I'm not familiar with PHP and i met a problem to filter an object of array.
I have a function (get_post_meta_for_api) who return me an object of array but there're a lot of properties that i don't need ...
So i'd like to filter my object by key who contains "seopress"
function get_post_meta_for_api( $object ) {
$post_id = $object['id'];
return get_post_meta( $post_id );
}
Thanks in advance for your help :)