• Resolved mahtisham404

    (@mahtisham404)


    Hi I’m creating wp rest api for mobile application.
    so i need to add campaign programmatically. is there any function/api that wp-crowdfunding plugin provide to add/edit/delete a campaign?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello there,

    We don’t have any REST API for this plugin but if you go to this location wp-content/plugins/wp-crowdfunding/shortcode you can find the available function we calling for different pages.

    Kind Regards.

    Thread Starter mahtisham404

    (@mahtisham404)

    Thank you I checked the files now I had to create my own functions just like the plugin is doing in the shortcode files. we can’t use shortcode files functions because those are for frontend.

    Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @mahtisham404,

    Yes, this is for the frontend we don’t have an API function. You can make your own function as you like.

    Regards,

    Thread Starter mahtisham404

    (@mahtisham404)

    Thank you for your response!

    Thread Starter mahtisham404

    (@mahtisham404)

    Hi I didn’t see any function for this hook “wpcf_before_campaign_submit_action” nor i found any documentation for this. can you please describe what this hook do

    Hi,

    This hook function is called by before_user_campaign_submit_action function which is located at /wp-content/plugins/wp-crowdfunding-pro/addons/recaptcha/classes/init.php

    Thanks.

    Thread Starter mahtisham404

    (@mahtisham404)

    Thank you!

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

The topic ‘How to add campaign programmatically for Rest API’ is closed to new replies.