Set post meta fields
User set post meta first_name and last_name one line Assistant To set both the `first_name` and `last_name` post meta fields on a single line in WordPress, you can use the `update_post_meta()` function like this: update_post_meta($post_id, 'first_name', 'John'); update_post_meta($post_id, 'last_name', 'Doe'); If you want to do this in a more compact way, you can combine them […]