How to add custom column to the tables


Use hook woot_profile_extend for it.

For this in file functions.php add next code:

Using $post_id you can create any data and return it directly to the cell.


Lets review more complicated example demonstrated here. Make your attention on button "Ask Me", click on it. As you can see this is contact form where customer can write a message to the shop manager about the product. To create it:

  • create new page and select template as "WOOT Blank Page"
  • install any contact form plugin, for example wpform
  • place to new page content contact form shortcode, for example [wpforms id="641"]
  • add next code to the functions.php file of the current WordPress theme:

    Make your attention on the link "https://demo.products-tables.com/wpform-contact-ask-me" and change it to your own.
  • To fill some inputs of the contact form apply next code:

    642 - page ID where contact form placed;
    wpforms-641-field_4 - ID of the input