Title: Niladri Das Roy's Replies | WordPress.org

---

# niladrixadapter

  [  ](https://wordpress.org/support/users/niladrixadapter/)

 *   [Profile](https://wordpress.org/support/users/niladrixadapter/)
 *   [Topics Started](https://wordpress.org/support/users/niladrixadapter/topics/)
 *   [Replies Created](https://wordpress.org/support/users/niladrixadapter/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/niladrixadapter/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/niladrixadapter/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/niladrixadapter/engagements/)
 *   [Favorites](https://wordpress.org/support/users/niladrixadapter/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WSDesk - Wordpress HelpDesk & Support Ticket System] Changed File after Installed](https://wordpress.org/support/topic/changed-file-after-installed/)
 *  [niladrixadapter](https://wordpress.org/support/users/niladrixadapter/)
 * (@niladrixadapter)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/changed-file-after-installed/#post-10360130)
 * Hi Brazen Links
 * We recently changed the link to our live demo website. The one you find in the
   wordpress.org site is the current link to our live demo. We did not change the
   version for this minor change hence you are not getting the notice to update 
   to the new version. Therefore, there is a minor code difference between your 
   plugin and the one in wordpress repo.
 * We DO NOT edit our plugin’s code on customer site without their permission and
   we have not taken any such consent from you.
 * The link directs you to a live demo of WSDesk where user’s can try our premium
   version before they decide to buy it. It is completely safe.
 * The change you see does not affect the working of WSDesk in anyway, it is only
   a marketing content change. If you want to get rid of the notice, you can delete
   WSDesk and download a new copy of the plugin.
 * Regards
    Niladri Das Roy
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WSDesk - Wordpress HelpDesk & Support Ticket System] API setup](https://wordpress.org/support/topic/api-setup/)
 *  [niladrixadapter](https://wordpress.org/support/users/niladrixadapter/)
 * (@niladrixadapter)
 * [8 years ago](https://wordpress.org/support/topic/api-setup/#post-10254351)
 * Hi
    The following code will not be in a different function. It will be at the
   begin of the one the main hooked function:
 *     ```
       add_filter( 'wpcf7_posted_data', 'filter_wpcf7_posted_data', 10, 1 ); //filter to get posted data from the form
       function filter_wpcf7_posted_data( $posted_data ) {
   
       //Not my desired form? bail
       if ( $contact_form->id !== 459 )
       return;
       //459is the ID of your desired form.
       // Do stuff for my contact form
   
        $url="http://testtuin.dewitonline.nl/wp-admin/admin-ajax.php"; //Full URL of the admin-ajax file.
        $response = wp_remote_post($url,array(
        'method'=>'POST',
       'body' => array(
             'action'=>'wsdesk_api_create_ticket',
             'api_key' => '4adbf7954695625ea25a5deee3b4abd8',
             'request_email' => $posted_data['helpdesk-email'],
             'request_title' => $posted_data['helpdesk-subject'],
             'request_description'=>$posted_data['helpdesk-message'] )
        ));
   
       $response=json_decode($response['body'],true);
        if($response['status']=='success')
        {
       //code if success
       }
        else
        {
       //code if fails
       }
       };
       ```
   
 * This all the code you will need to add in your function.php
    If you wish to do
   something after successfully submitting the form or do something in case of an
   error you can add your custom code instead of “//code if success” and “//code
   if fails” respectively. These lines are towards the end of function.
 * Thank You.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WSDesk - Wordpress HelpDesk & Support Ticket System] API setup](https://wordpress.org/support/topic/api-setup/)
 *  [niladrixadapter](https://wordpress.org/support/users/niladrixadapter/)
 * (@niladrixadapter)
 * [8 years ago](https://wordpress.org/support/topic/api-setup/#post-10254292)
 * Hi
    You need to replace $myform_id with the form ID. Please see the snippet below.
 *     ```
           if ( $contact_form->id !== 459)
               return;
           // continue with rest of the function here
       ```
   
 * Thank you
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WSDesk - Wordpress HelpDesk & Support Ticket System] API setup](https://wordpress.org/support/topic/api-setup/)
 *  [niladrixadapter](https://wordpress.org/support/users/niladrixadapter/)
 * (@niladrixadapter)
 * [8 years ago](https://wordpress.org/support/topic/api-setup/#post-10254260)
 * Hi
    Yes, you can set up multiple forms. In the functions.php file, you can add
   the following snippet in the beginning of the function just to check if the submitted
   data is from the one you want to use as the support form.
 *     ```
       add_filter( 'wpcf7_posted_data', 'filter_wpcf7_posted_data', 10, 1 ); //filter to get posted data from the form );
   
       function filter_wpcf7_posted_data( $contact_form ) {
   
           // Not my desired form? bail
           if ( $contact_form->id !== $myform_id )
               return;
           //$myform_id is the ID of your desired form.
           // Do stuff for my contact form
       }
       ```
   
 * We can help you set it up via screen sharing if you face any trouble. Just raise
   an issue [here](https://wsdesk.com/support/).
    Thank you
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WSDesk - Wordpress HelpDesk & Support Ticket System] Shortcode Not Working!](https://wordpress.org/support/topic/shortcode-not-working-236/)
 *  [niladrixadapter](https://wordpress.org/support/users/niladrixadapter/)
 * (@niladrixadapter)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/shortcode-not-working-236/#post-9950826)
 * Hi hwsiew
    Basic version comes with only these shortcodes:
    - WSDesk support action shortcode [wsdesk_support]
    - WSDesk support form shortcode [wsdesk_support display=form]

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