Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress add meta user

<?php
// Add to a WordPress User some metaData (so you can control it somewhere else)
$user_id = 1;
$metaData = 'subscribed';
add_user_meta( $user_id, '_subscribedService1', $metaData);
?>
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress #add #meta #user
ADD COMMENT
Topic
Name
7+7 =