Creating a new record with php
-
I run a php routine to get the users WordPress name.
I then check to see if that user is on the PDBIf the user is on the PDB I use
do_shortcode(‘[pdb_record fields=”username,boat_name,boat_model,boat_owner” record_id=’.$user_id.’]’);
which allows the user to amend his recordIf the user is not on PDB I use echo do_shortcode(‘[pdb_signup fields=”username”]’); to create a record with just the username. The shortcode requires the user to re-enter his username. The username is unique. To save this step, what code can I use for this routine to be carried out automatically and does not require the user to enter his username.
Many Thanks
The topic ‘Creating a new record with php’ is closed to new replies.