Create campaigns via code
-
Hi. I’m needing to create campaigns via PHP code as part of my automated script. What is the format expected to pass for the list of
suggested_donations
andsuggested_donations_default
? This is what I have but the suggested_donations values are not being set in the campaign.$args = array( 'title' => $campaignName, 'creator' => 1, 'status' => 'publish', 'comment_status' => false, 'parent' => 0, 'suggested_donations' => array(10,25,50,100,250,500,1000), 'suggested_donations_default' => 25, 'allow_custom_donations' => true, 'minimum_donation_amount' => 20, ); $campaign = charitable_create_campaign( $args );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Create campaigns via code’ is closed to new replies.