Answers for "add postmeta"

PHP
1

add post meta wordpress

<?php

$post_id = 1;
$meta_key = '_test';
$meta_value = 'this is a test';
$unique = true;

add_post_meta( $post_id, $meta_key, $meta_value, $unique );
Posted by: Guest on June-03-2020

Browse Popular Code Answers by Language