Title: How to set data through PHP
Last modified: August 21, 2016

---

# How to set data through PHP

 *  Resolved [nirgalo](https://wordpress.org/support/users/nirgalo/)
 * (@nirgalo)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/)
 * Nice plugin, but I also need to have write access to the data from PHP, there
   doesn’t seem to be any facility for this.
 * [http://wordpress.org/plugins/simple-custom-website-data/](http://wordpress.org/plugins/simple-custom-website-data/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [DannyWeeks](https://wordpress.org/support/users/dannyweeks/)
 * (@dannyweeks)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/#post-4238768)
 * Hi nirgalo,
 * I will add this feature in over the next day or two.
 * Thanks
    Danny
 *  Thread Starter [nirgalo](https://wordpress.org/support/users/nirgalo/)
 * (@nirgalo)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/#post-4238769)
 * Great! Thanks Danny.
 *  Plugin Author [DannyWeeks](https://wordpress.org/support/users/dannyweeks/)
 * (@dannyweeks)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/#post-4238770)
 * Hi nigalo,
 * The plugin has been tested and updated. It is available for you to update in 
   your plugin menu. You won’t lose any of your custom data when updating.
 * I have fully documented the change in the user guide which you can get to from
   the dashboard of the plugin. But here is a quick guide to the new addition.
 * The new function that has been added is `cwd_updateThe($reference, $data)`. `
   $reference` is the ‘ref’ of the record you want to update and `$data` is the 
   new data you want to add to the record. The $data can either be a string, numeric
   or an array.
 * You can use this function anywhere in your template, the function will return
   true or false depending on whether it is successful or not.
 * I am marking this issue as resolved now. If you could reconsider your review 
   in light of the 1.2 update that would be great.
 * If you have any other suggestions or queries please don’t hesitate to get in 
   touch!
 * Thank for your suggestion, I hope this helps.
 * Danny
 *  Thread Starter [nirgalo](https://wordpress.org/support/users/nirgalo/)
 * (@nirgalo)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/#post-4238780)
 * Thanks Danny, updating the table works great with 1.2, thanks for the great support!
 *  [semky](https://wordpress.org/support/users/semky/)
 * (@semky)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/#post-4238899)
 * It does not show up in the dashboard,
    WP Version 3.9.1 CWD 1.4
 * It is development site, with
    Custom Field Suit Linked Data From another DB
 * have reinstalled,, reactivated but still cannot find on dashboard.
 *  Plugin Author [DannyWeeks](https://wordpress.org/support/users/dannyweeks/)
 * (@dannyweeks)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/#post-4238900)
 * Sorry I can’t replicate your problem. I have a clean install of WP 3.9.1 and 
   installed Custom Field Suit & Linked Data From another DB then CWD and didn’t
   have any problems with CWD. I did have an issue with Linked Data From another
   DB with it using short php tags.
 *  [semky](https://wordpress.org/support/users/semky/)
 * (@semky)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/#post-4238901)
 * actually at this point I find it is C F S that is blocking my CWD from showing
   up on my dash, This may be in conjunction with other plugins. But it does work
   with cfs deactivated. and once I get it up on screen I can now see your links
   to documentation and your other dev sites.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘How to set data through PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-custom-website-data_2d3e50.
   svg)
 * [Custom Website Data](https://wordpress.org/plugins/simple-custom-website-data/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-custom-website-data/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-custom-website-data/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-custom-website-data/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-custom-website-data/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-custom-website-data/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [semky](https://wordpress.org/support/users/semky/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/how-to-set-data-through-php/#post-4238901)
 * Status: resolved